Ticket #13220: 13220.remove.trailing.commas.1.patch
File 13220.remove.trailing.commas.1.patch, 2.1 KB (added by , 14 years ago) |
---|
-
wp-admin/js/nav-menu.dev.js
208 208 t.find('img.waiting').hide(); 209 209 }); 210 210 }); 211 } ,211 } 212 212 }); 213 213 }, 214 214 … … 476 476 'action': 'add-menu-item', 477 477 'menu': menu, 478 478 'menu-settings-column-nonce': nonce, 479 'menu-item': menuItem ,479 'menu-item': menuItem 480 480 }; 481 481 482 482 $.post( ajaxurl, params, function(menuMarkup) { … … 560 560 tabs = fluid.children('.nav-tab'), 561 561 tabsWidth = 0, 562 562 fixedRight, fixedLeft, 563 arrowLeft, arrowRight 563 arrowLeft, arrowRight, 564 564 resizing = false; 565 565 566 566 function resetMenuTabs() { … … 576 576 left = t.offset().left; 577 577 right = left + t.outerWidth(); 578 578 if( right > fixedRight ) 579 fluid.animate({ 'margin-left' : "+=" + (fixedRight - right) + 'px' ,}, 'fast');579 fluid.animate({ 'margin-left' : "+=" + (fixedRight - right) + 'px' }, 'fast'); 580 580 else if ( left < fixedLeft ) 581 fluid.animate({ 'margin-left' : "-=" + (left - fixedLeft) + 'px' ,}, 'fast');581 fluid.animate({ 'margin-left' : "-=" + (left - fixedLeft) + 'px' }, 'fast'); 582 582 return t; 583 583 }, 584 584 isTabVisible : function() { … … 603 603 // Set up right margin for overflow, unset padding 604 604 fluid.css({ 605 605 'margin-right' : (-1 * tabsWidth) + 'px', 606 'padding' : 0 ,606 'padding' : 0 607 607 }); 608 608 609 609 // Build tab navigation … … 629 629 arrow : arrowLeft, 630 630 next : "next", 631 631 last : "first", 632 operator : "+=" ,632 operator : "+=" 633 633 },{ 634 634 arrow : arrowRight, 635 635 next : "prev", 636 636 last : "last", 637 operator : "-=" ,637 operator : "-=" 638 638 }], function(){ 639 639 var that = this; 640 640 this.arrow.mousedown(function(){ 641 641 var last = tabs[that.last](), 642 642 fn = function() { 643 643 if( ! last.isTabVisible() ) 644 fluid.animate({ 'margin-left' : that.operator + '90px' ,}, 300, "linear", fn);644 fluid.animate({ 'margin-left' : that.operator + '90px' }, 300, "linear", fn); 645 645 }; 646 646 fn(); 647 647 }).mouseup(function(){