Ticket #13470: pixel-sanity-check.13470.diff
File pixel-sanity-check.13470.diff, 605 bytes (added by , 15 years ago) |
---|
-
wp-admin/js/nav-menu.dev.js
55 55 // jQuery extensions 56 56 $.fn.extend({ 57 57 menuItemDepth : function() { 58 return api.pxToDepth( this.eq(0).css('margin-left').slice(0, -2) ); 58 var margin = this.eq(0).css('margin-left'); 59 return api.pxToDepth( margin && -1 != margin.indexOf('px') ? margin.slice(0, -2) : 0 ); 59 60 }, 60 61 updateDepthClass : function(current, prev) { 61 62 return this.each(function(){