diff --git a/jquery.popmenu.min.js b/jquery.popmenu.min.js index 8b0a554..db79e2f 100644 --- a/jquery.popmenu.min.js +++ b/jquery.popmenu.min.js @@ -1 +1 @@ -!function(a){a.fn.popmenu=function(b){function j(){f.css({display:d,position:"absolute","margin-top":-c.top,"margin-left":-c.left,background:c.background,width:c.width,"float":"left",padding:"0","border-radius":c.borderRadius}),g.css({display:"block",color:"#fff","float":"left",width:c.iconSize,height:c.iconSize,"text-align":"center","border-radius":c.borderRadius}),h.css({"text-decoration":"none",color:"#fff"}),i.hover(function(){i.css("cursor","pointer")},function(){i.css("cursor","alias")}),i.click(function(b){b.preventDefault(),f.show("fast"),a(document).mouseup(function(a){var b=f;b.is(a.target)||0!==b.has(a.target).length||b.hide()})}),g.hover(function(){a(this).css({background:c.focusColor,cursor:"pointer"})},function(){a(this).css({background:c.background,cursor:"alias"})})}var c=a.extend({controller:!0,width:"300px",background:"#34495e",focusColor:"#1abc9c",borderRadius:"10px",top:"50",left:"0",iconSize:"100px"},b);if(c.controller===!0)var d="none";else d="block";var e=a(this),f=e.children("ul"),g=f.children("li"),h=g.children("a"),i=a("#pop_ctrl");return j()}}(jQuery); \ No newline at end of file +!function(o){o.fn.popmenu=function(r){function t(){i.css({display:e,position:"absolute","margin-top":-n.top,"margin-left":-n.left,background:n.background,width:n.width,"float":"left",padding:"0","border-radius":n.borderRadius}),s.css({display:"block",color:"#fff","float":"left",width:n.iconSize,height:n.iconSize,"text-align":"center","border-radius":n.borderRadius}),u.css({"text-decoration":"none",color:"#fff"}),a.hover(function(){a.css("cursor","pointer")},function(){a.css("cursor","default")}),a.click(function(r){r.preventDefault(),i.show("fast"),o(document).mouseup(function(o){var r=i;r.is(o.target)||0!==r.has(o.target).length||r.hide(),r.hide()})}),s.hover(function(){o(this).css({background:n.focusColor,cursor:"pointer"})},function(){o(this).css({background:n.background,cursor:"default"})})}var n=o.extend({controller:!0,width:"300px",background:"#34495e",focusColor:"#1abc9c",borderRadius:"10px",top:"50",left:"0",iconSize:"100px"},r);if(n.controller===!0)var e="none";else e="block";var c=o(this),i=c.children("ul"),s=i.children("li"),u=s.children("a"),a=o("#pop_ctrl");return t()}}(jQuery); \ No newline at end of file diff --git a/src/jquery.popmenu.js b/src/jquery.popmenu.js index c250978..b80bcd3 100644 --- a/src/jquery.popmenu.js +++ b/src/jquery.popmenu.js @@ -55,7 +55,7 @@ Based on jQuery 2.0.3 'text-decoration': 'none', 'color': '#fff' }); - tar_ctrl.hover(function(){tar_ctrl.css('cursor','pointer');},function(){tar_ctrl.css('cursor','alias')}); + tar_ctrl.hover(function(){tar_ctrl.css('cursor','pointer');},function(){tar_ctrl.css('cursor','default')}); tar_ctrl.click(function(e) { e.preventDefault(); tar_body.show('fast'); @@ -64,6 +64,7 @@ Based on jQuery 2.0.3 if(!_con.is(e.target) && _con.has(e.target).length === 0){ _con.hide(); } + _con.hide(); }); }); tar_list.hover(function() { @@ -74,7 +75,7 @@ Based on jQuery 2.0.3 }, function() { $(this).css({ 'background': settings.background, - 'cursor': 'alias' + 'cursor': 'default' }); }); }