Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Module Action Menu positionModule Action Menu position
Previous
 
Next
New Post
10/29/2011 4:57 AM
 
Hi<br /> In work with modules and action menu in have poroblem menu open top left or bottom left and for right pan I have poroblem with this positions I change this menu and now action menu open in top left , bottom,left,  top right, bottom right<br /> Replace this code in file dnnactions.js on this path admin\Menus\DNNActions<br /> <br /> <br /> (function (b, a) { b.fn.dnnActionMenu = function (c) { var e = b.extend({}, b.fn.dnnActionMenu.defaultOptions, c), d = this; d.each(function () { var i = b(this); function h(m, j, l) { var k = m.children("." + e.borderClassName); if (k.size() === 0) { k = b('<div class="' + e.borderClassName + '"></div>').prependTo(m).css({ opacity: 0 }) } m.attr("style", "z-index:904;"); if (l) { m.find(e.menuActionSelector).fadeTo(e.fadeSpeed, j) } m.children("." + e.borderClassName).fadeTo(e.fadeSpeed, j) } function f(l, j, k) { l.removeAttr("style"); l.children("." + e.borderClassName).stop().fadeTo(e.fadeSpeed, 0); if (k) { l.find(e.menuActionSelector).stop().fadeTo(e.fadeSpeed, j) } } function g(j) { var m = i.find(e.menuSelector).show(), o = m.height(), n = b(a).height(), l = j.offset().top, k = (n - ((l - b(a).scrollTop()) + j.height())), r = (m.width() + j.offset().left > b(a).width()); if ((o > k) && (o <= l) && (r == false)) { m.position({ my: "left bottom", at: "left top", of: j, collision: "none" }) } else if (((o > k) || (o <= l)) && (r == false)) { m.position({ my: "left top", at: "left bottom", of: j, collision: "none" }) } if ((o > k) && (o <= l) && (r == true)) { m.position({ my: "right bottom", at: "right top", of: j, collision: "none" }) } else if (((o > k) || (o <= l)) && (r == true)) { m.position({ my: "right top", at: "right bottom", of: j, collision: "none" }) } } if (i.find(e.menuSelector).size() > 0) { i.hoverIntent({ sensitivity: e.hoverSensitivity, timeout: e.hoverTimeout, interval: e.hoverInterval, over: function () { h(b(this).data("intentExpressed", true), 1, true) }, out: function () { f(b(this).data("intentExpressed", false), e.defaultOpacity, true) } }); i.hover(function () { h(b(this), e.defaultOpacity, false) }, function () { var j = b(this); if (!j.data("intentExpressed")) { f(j, 0, false) } }); i.find(e.menuActionSelector).css({ opacity: e.defaultOpacity }); i.find(e.menuWrapSelector).hoverIntent({ sensitivity: e.hoverSensitivity, timeout: e.hoverTimeout, interval: e.hoverInterval, over: function () { g(b(this)); i.find(e.menuSelector).fadeTo(e.fadeSpeed, 1) }, out: function () { i.find(e.menuSelector).stop().fadeTo(e.fadeSpeed, 0).hide() } }); i.find(e.menuSelector).children().css({ opacity: 1 }); i.find(e.menuWrapSelector).draggable({ containment: i.children().eq(1), start: function (j, k) { i.find(e.menuSelector).hide() }, stop: function (j, k) { g(b(this)); i.find(e.menuSelector).show() } }) } }); return d }; b.fn.dnnActionMenu.defaultOptions = { menuWrapSelector: ".dnnActionMenu", menuActionSelector: ".dnnActionMenuTag", menuSelector: "ul.dnnActionMenuBody", defaultOpacity: 0.3, fadeSpeed: "fast", borderClassName: "dnnActionMenuBorder", hoverSensitivity: 2, hoverTimeout: 200, hoverInterval: 200 }; b(document).ready(function () { b(".DnnModule").dnnActionMenu() }) })(jQuery, window);
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Module Action Menu positionModule Action Menu position


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out