Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php |
— | — | @@ -65,14 +65,14 @@ |
66 | 66 | // Core functionality of extension scripts |
67 | 67 | array( 'src' => 'js/plugins/jquery.async.js', 'version' => 3 ), |
68 | 68 | array( 'src' => 'js/plugins/jquery.autoEllipsis.js', 'version' => 7 ), |
69 | | - array( 'src' => 'js/plugins/jquery.browser.js', 'version' => 5 ), |
| 69 | + array( 'src' => 'js/plugins/jquery.browser.js', 'version' => 6 ), |
70 | 70 | array( 'src' => 'js/plugins/jquery.collapsibleTabs.js', 'version' => 5 ), |
71 | 71 | array( 'src' => 'js/plugins/jquery.color.js', 'version' => 1 ), |
72 | 72 | array( 'src' => 'js/plugins/jquery.cookie.js', 'version' => 4 ), |
73 | 73 | array( 'src' => 'js/plugins/jquery.delayedBind.js', 'version' => 1 ), |
74 | 74 | array( 'src' => 'js/plugins/jquery.suggestions.js', 'version' => 7 ), |
75 | 75 | array( 'src' => 'js/plugins/jquery.textSelection.js', 'version' => 27 ), |
76 | | - array( 'src' => 'js/plugins/jquery.wikiEditor.js', 'version' => 168 ), |
| 76 | + array( 'src' => 'js/plugins/jquery.wikiEditor.js', 'version' => 169 ), |
77 | 77 | array( 'src' => 'js/plugins/jquery.wikiEditor.highlight.js', 'version' => 43 ), |
78 | 78 | array( 'src' => 'js/plugins/jquery.wikiEditor.toolbar.js', 'version' => 52 ), |
79 | 79 | array( 'src' => 'js/plugins/jquery.wikiEditor.dialogs.js', 'version' => 21 ), |
— | — | @@ -82,10 +82,10 @@ |
83 | 83 | array( 'src' => 'js/plugins/jquery.wikiEditor.publish.js', 'version' => 3 ), |
84 | 84 | ), |
85 | 85 | 'combined' => array( |
86 | | - array( 'src' => 'js/plugins.combined.js', 'version' => 333 ), |
| 86 | + array( 'src' => 'js/plugins.combined.js', 'version' => 334 ), |
87 | 87 | ), |
88 | 88 | 'minified' => array( |
89 | | - array( 'src' => 'js/plugins.combined.min.js', 'version' => 333 ), |
| 89 | + array( 'src' => 'js/plugins.combined.min.js', 'version' => 334 ), |
90 | 90 | ), |
91 | 91 | ), |
92 | 92 | ); |
Index: trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.hooks.php |
— | — | @@ -16,14 +16,14 @@ |
17 | 17 | array( 'src' => 'Modules/Preview/Preview.js', 'version' => 6 ), |
18 | 18 | array( 'src' => 'Modules/Publish/Publish.js', 'version' => 6 ), |
19 | 19 | array( 'src' => 'Modules/Toc/Toc.js', 'version' => 7 ), |
20 | | - array( 'src' => 'Modules/Toolbar/Toolbar.js', 'version' => 55 ), |
| 20 | + array( 'src' => 'Modules/Toolbar/Toolbar.js', 'version' => 56 ), |
21 | 21 | array( 'src' => 'Modules/TemplateEditor/TemplateEditor.js', 'version' => 6 ), |
22 | 22 | ), |
23 | 23 | 'combined' => array( |
24 | | - array( 'src' => 'WikiEditor.combined.js', 'version' => 59 ), |
| 24 | + array( 'src' => 'WikiEditor.combined.js', 'version' => 60 ), |
25 | 25 | ), |
26 | 26 | 'minified' => array( |
27 | | - array( 'src' => 'WikiEditor.combined.min.js', 'version' => 59 ), |
| 27 | + array( 'src' => 'WikiEditor.combined.min.js', 'version' => 60 ), |
28 | 28 | ), |
29 | 29 | ); |
30 | 30 | static $messages = array( |
Index: trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.combined.js |
— | — | @@ -1638,27 +1638,25 @@ |
1639 | 1639 | } |
1640 | 1640 | }, |
1641 | 1641 | 'search-and-replace': { |
1642 | | - /* |
1643 | 1642 | 'browsers': { |
1644 | 1643 | // Left-to-right languages |
1645 | 1644 | 'ltr': { |
1646 | 1645 | 'msie': [['>=', 7]], |
1647 | | - 'firefox': [['>=', 3]], |
1648 | | - 'opera': [['>=', 10]], |
1649 | | - 'safari': [['>=', 4]], |
1650 | | - 'chrome': [['>=', 4]] |
| 1646 | + 'firefox': [['>=', 2]], |
| 1647 | + 'opera': [['&&', false]], // blacklisted |
| 1648 | + 'safari': [['>=', 3]], |
| 1649 | + 'chrome': [['>=', 3]] |
1651 | 1650 | }, |
1652 | 1651 | // Right-to-left languages |
1653 | 1652 | 'rtl': { |
1654 | 1653 | 'msie': [['>=', 8]], |
1655 | | - 'firefox': [['>=', 3]], |
1656 | | - 'opera': [['>=', 10]], |
1657 | | - 'safari': [['>=', 4]], |
1658 | | - 'chrome': [['>=', 4]] |
| 1654 | + 'firefox': [['>=', 2]], |
| 1655 | + 'opera': ['&&', false], // blacklisted |
| 1656 | + 'safari': [['>=', 3]], |
| 1657 | + 'chrome': [['>=', 3]] |
1659 | 1658 | } |
1660 | 1659 | }, |
1661 | 1660 | 'req': [ 'iframe' ], |
1662 | | - */ |
1663 | 1661 | filters: [ '#wpTextbox1.toolbar-dialogs' ], |
1664 | 1662 | titleMsg: 'wikieditor-toolbar-tool-replace-title', |
1665 | 1663 | id: 'wikieditor-toolbar-replace-dialog', |
Index: trunk/extensions/UsabilityInitiative/WikiEditor/WikiEditor.combined.min.js |
— | — | @@ -142,7 +142,7 @@ |
143 | 143 | classes.push('sortable');var classStr=classes.length>0?' class="'+classes.join(' ')+'"':'';$j.wikiEditor.modules.toolbar.fn.doAction($j(this).data('context'),{type:'replace',options:{pre:'{|'+classStr+"\n",peri:table,post:'|}',ownline:true}},$j(this));$j('#wikieditor-toolbar-table-dimensions-rows').val(4);$j('#wikieditor-toolbar-table-dimensions-columns').val(3);if(!$j('#wikieditor-toolbar-table-dimensions-header').is(':checked')) |
144 | 144 | $j('#wikieditor-toolbar-table-dimensions-header').click();if(!$j('#wikieditor-toolbar-table-wikitable').is(':checked')) |
145 | 145 | $j('#wikieditor-toolbar-table-wikitable').click();if($j('#wikieditor-toolbar-table-sortable').is(':checked')) |
146 | | -$j('#wikieditor-toolbar-table-sortable').click();$j(this).dialog('close');},'wikieditor-toolbar-tool-table-cancel':function(){$j(this).dialog('close');}},open:function(){$j('#wikieditor-toolbar-table-dimensions-rows').focus();if(!($j(this).data('dialogkeypressset'))){$j(this).data('dialogkeypressset',true);$j(this).closest('.ui-dialog').keypress(function(e){if((e.keyCode||e.which)==13){var button=$j(this).data('dialogaction')||$j(this).find('button:first');button.click();e.preventDefault();}});$j(this).closest('.ui-dialog').find('button').focus(function(){$j(this).closest('.ui-dialog').data('dialogaction',this);});}}}},'search-and-replace':{filters:['#wpTextbox1.toolbar-dialogs'],titleMsg:'wikieditor-toolbar-tool-replace-title',id:'wikieditor-toolbar-replace-dialog',html:'\ |
| 146 | +$j('#wikieditor-toolbar-table-sortable').click();$j(this).dialog('close');},'wikieditor-toolbar-tool-table-cancel':function(){$j(this).dialog('close');}},open:function(){$j('#wikieditor-toolbar-table-dimensions-rows').focus();if(!($j(this).data('dialogkeypressset'))){$j(this).data('dialogkeypressset',true);$j(this).closest('.ui-dialog').keypress(function(e){if((e.keyCode||e.which)==13){var button=$j(this).data('dialogaction')||$j(this).find('button:first');button.click();e.preventDefault();}});$j(this).closest('.ui-dialog').find('button').focus(function(){$j(this).closest('.ui-dialog').data('dialogaction',this);});}}}},'search-and-replace':{'browsers':{'ltr':{'msie':[['>=',7]],'firefox':[['>=',2]],'opera':[['&&',false]],'safari':[['>=',3]],'chrome':[['>=',3]]},'rtl':{'msie':[['>=',8]],'firefox':[['>=',2]],'opera':['&&',false],'safari':[['>=',3]],'chrome':[['>=',3]]}},'req':['iframe'],filters:['#wpTextbox1.toolbar-dialogs'],titleMsg:'wikieditor-toolbar-tool-replace-title',id:'wikieditor-toolbar-replace-dialog',html:'\ |
147 | 147 | <div id="wikieditor-toolbar-replace-message">\ |
148 | 148 | <div id="wikieditor-toolbar-replace-nomatch" rel="wikieditor-toolbar-tool-replace-nomatch"></div>\ |
149 | 149 | <div id="wikieditor-toolbar-replace-success"></div>\ |
Index: trunk/extensions/UsabilityInitiative/WikiEditor/Modules/Toolbar/Toolbar.js |
— | — | @@ -1589,27 +1589,25 @@ |
1590 | 1590 | } |
1591 | 1591 | }, |
1592 | 1592 | 'search-and-replace': { |
1593 | | - /* |
1594 | 1593 | 'browsers': { |
1595 | 1594 | // Left-to-right languages |
1596 | 1595 | 'ltr': { |
1597 | 1596 | 'msie': [['>=', 7]], |
1598 | | - 'firefox': [['>=', 3]], |
1599 | | - 'opera': [['>=', 10]], |
1600 | | - 'safari': [['>=', 4]], |
1601 | | - 'chrome': [['>=', 4]] |
| 1597 | + 'firefox': [['>=', 2]], |
| 1598 | + 'opera': [['&&', false]], // blacklisted |
| 1599 | + 'safari': [['>=', 3]], |
| 1600 | + 'chrome': [['>=', 3]] |
1602 | 1601 | }, |
1603 | 1602 | // Right-to-left languages |
1604 | 1603 | 'rtl': { |
1605 | 1604 | 'msie': [['>=', 8]], |
1606 | | - 'firefox': [['>=', 3]], |
1607 | | - 'opera': [['>=', 10]], |
1608 | | - 'safari': [['>=', 4]], |
1609 | | - 'chrome': [['>=', 4]] |
| 1605 | + 'firefox': [['>=', 2]], |
| 1606 | + 'opera': ['&&', false], // blacklisted |
| 1607 | + 'safari': [['>=', 3]], |
| 1608 | + 'chrome': [['>=', 3]] |
1610 | 1609 | } |
1611 | 1610 | }, |
1612 | 1611 | 'req': [ 'iframe' ], |
1613 | | - */ |
1614 | 1612 | filters: [ '#wpTextbox1.toolbar-dialogs' ], |
1615 | 1613 | titleMsg: 'wikieditor-toolbar-tool-replace-title', |
1616 | 1614 | id: 'wikieditor-toolbar-replace-dialog', |
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js |
— | — | @@ -44,7 +44,10 @@ |
45 | 45 | 'opera': [['>=', 9.6]], |
46 | 46 | // jQuery minimums |
47 | 47 | 'safari': [['>=', 3]], |
48 | | - 'chrome': [['>=', 3]] |
| 48 | + 'chrome': [['>=', 3]], |
| 49 | + 'blackberry': [['&&', false]], // blacklisted |
| 50 | + 'ipod': [['&&', false]], // blacklisted |
| 51 | + 'iphone': [['&&', false]] // blacklisted |
49 | 52 | }, |
50 | 53 | // Right-to-left languages |
51 | 54 | 'rtl': { |
— | — | @@ -56,7 +59,10 @@ |
57 | 60 | 'opera': [['>=', 9.6]], |
58 | 61 | // jQuery minimums |
59 | 62 | 'safari': [['>=', 3]], |
60 | | - 'chrome': [['>=', 3]] |
| 63 | + 'chrome': [['>=', 3]], |
| 64 | + 'blackberry': [['&&', false]], // blacklisted |
| 65 | + 'ipod': [['&&', false]], // blacklisted |
| 66 | + 'iphone': [['&&', false]] // blacklisted |
61 | 67 | } |
62 | 68 | }, |
63 | 69 | /** |
— | — | @@ -531,7 +537,7 @@ |
532 | 538 | name in $.wikiEditor.modules[module].evt |
533 | 539 | ) { |
534 | 540 | var ret = $.wikiEditor.modules[module].evt[name]( context, event ); |
535 | | - if(ret != null){ |
| 541 | + if (ret != null) { |
536 | 542 | //if 1 returns false, the end result is false |
537 | 543 | if( returnFromModules == null ) { |
538 | 544 | returnFromModules = ret; |
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.browser.js |
— | — | @@ -64,7 +64,7 @@ |
65 | 65 | ['Navigator', 'Netscape'] |
66 | 66 | ]) : a).toLowerCase(); |
67 | 67 | |
68 | | - $.browser = $.extend((!z) ? $.browser : {}, c(a, /(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari)/, [], /(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/)); |
| 68 | + $.browser = $.extend((!z) ? $.browser : {}, c(a, /(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari|ipod|iphone|blackberry)/, [], /(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/)); |
69 | 69 | |
70 | 70 | $.layout = c(a, /(gecko|konqueror|msie|opera|webkit)/, [ |
71 | 71 | ['konqueror', 'khtml'], |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.js |
— | — | @@ -5326,7 +5326,7 @@ |
5327 | 5327 | ['Navigator', 'Netscape'] |
5328 | 5328 | ]) : a).toLowerCase(); |
5329 | 5329 | |
5330 | | - $.browser = $.extend((!z) ? $.browser : {}, c(a, /(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari)/, [], /(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/)); |
| 5330 | + $.browser = $.extend((!z) ? $.browser : {}, c(a, /(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari|ipod|iphone|blackberry)/, [], /(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/)); |
5331 | 5331 | |
5332 | 5332 | $.layout = c(a, /(gecko|konqueror|msie|opera|webkit)/, [ |
5333 | 5333 | ['konqueror', 'khtml'], |
— | — | @@ -6587,7 +6587,10 @@ |
6588 | 6588 | 'opera': [['>=', 9.6]], |
6589 | 6589 | // jQuery minimums |
6590 | 6590 | 'safari': [['>=', 3]], |
6591 | | - 'chrome': [['>=', 3]] |
| 6591 | + 'chrome': [['>=', 3]], |
| 6592 | + 'blackberry': [['&&', false]], // blacklisted |
| 6593 | + 'ipod': [['&&', false]], // blacklisted |
| 6594 | + 'iphone': [['&&', false]] // blacklisted |
6592 | 6595 | }, |
6593 | 6596 | // Right-to-left languages |
6594 | 6597 | 'rtl': { |
— | — | @@ -6599,7 +6602,10 @@ |
6600 | 6603 | 'opera': [['>=', 9.6]], |
6601 | 6604 | // jQuery minimums |
6602 | 6605 | 'safari': [['>=', 3]], |
6603 | | - 'chrome': [['>=', 3]] |
| 6606 | + 'chrome': [['>=', 3]], |
| 6607 | + 'blackberry': [['&&', false]], // blacklisted |
| 6608 | + 'ipod': [['&&', false]], // blacklisted |
| 6609 | + 'iphone': [['&&', false]] // blacklisted |
6604 | 6610 | } |
6605 | 6611 | }, |
6606 | 6612 | /** |
— | — | @@ -7074,7 +7080,7 @@ |
7075 | 7081 | name in $.wikiEditor.modules[module].evt |
7076 | 7082 | ) { |
7077 | 7083 | var ret = $.wikiEditor.modules[module].evt[name]( context, event ); |
7078 | | - if(ret != null){ |
| 7084 | + if (ret != null) { |
7079 | 7085 | //if 1 returns false, the end result is false |
7080 | 7086 | if( returnFromModules == null ) { |
7081 | 7087 | returnFromModules = ret; |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.min.js |
— | — | @@ -371,7 +371,7 @@ |
372 | 372 | return r;},c=function(i,a,b,c){var r={name:m((a.exec(i)||[u,u])[1],b)};r[r.name]=true;r.version=(c.exec(i)||[x,x,x,x])[3];if(r.name.match(/safari/)&&r.version>400){r.version='2.0';} |
373 | 373 | if(r.name==='presto'){r.version=($.browser.version>9.27)?'futhark':'linear_b';} |
374 | 374 | if(r.name==='opera'&&$.browser.version>=9.8){r.version=i.match(/version\/([0-9\.]*)/i)[1]||10;} |
375 | | -r.versionNumber=parseFloat(r.version,10)||0;r.versionX=(r.version!==x)?(r.version+'').substr(0,1):x;r.className=r.name+r.versionX;return r;};a=(a.match(/Opera|Navigator|Minefield|KHTML|Chrome/)?m(a,[[/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/,''],['Chrome Safari','Chrome'],['KHTML','Konqueror'],['Minefield','Firefox'],['Navigator','Netscape']]):a).toLowerCase();$.browser=$.extend((!z)?$.browser:{},c(a,/(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari)/,[],/(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/));$.layout=c(a,/(gecko|konqueror|msie|opera|webkit)/,[['konqueror','khtml'],['msie','trident'],['opera','presto']],/(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/);$.os={name:(/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase())||[u])[0].replace('sunos','solaris')};if(!z){$('html').addClass([$.os.name,$.browser.name,$.browser.className,$.layout.name,$.layout.className].join(' '));}};$.browserTest(navigator.userAgent);})(jQuery);(function($){$.fn.collapsibleTabs=function($$options){if(!this.length)return this;var $settings=$.extend({},$.collapsibleTabs.defaults,$$options);this.each(function(){var $this=$(this);$.collapsibleTabs.instances=($.collapsibleTabs.instances.length==0?$this:$.collapsibleTabs.instances.add($this));$this.data('collapsibleTabsSettings',$settings);$this.children($settings.collapsible).each(function(){var $collapsible=$(this);$collapsible.data('collapsibleTabsSettings',{'expandedContainer':$settings.expandedContainer,'collapsedContainer':$settings.collapsedContainer,'expandedWidth':$collapsible.width(),'prevElement':$collapsible.prev()});});});if(!$.collapsibleTabs.boundEvent){$(window).delayedBind('500','resize',function(){$.collapsibleTabs.handleResize();});} |
| 375 | +r.versionNumber=parseFloat(r.version,10)||0;r.versionX=(r.version!==x)?(r.version+'').substr(0,1):x;r.className=r.name+r.versionX;return r;};a=(a.match(/Opera|Navigator|Minefield|KHTML|Chrome/)?m(a,[[/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/,''],['Chrome Safari','Chrome'],['KHTML','Konqueror'],['Minefield','Firefox'],['Navigator','Netscape']]):a).toLowerCase();$.browser=$.extend((!z)?$.browser:{},c(a,/(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari|ipod|iphone|blackberry)/,[],/(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/));$.layout=c(a,/(gecko|konqueror|msie|opera|webkit)/,[['konqueror','khtml'],['msie','trident'],['opera','presto']],/(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/);$.os={name:(/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase())||[u])[0].replace('sunos','solaris')};if(!z){$('html').addClass([$.os.name,$.browser.name,$.browser.className,$.layout.name,$.layout.className].join(' '));}};$.browserTest(navigator.userAgent);})(jQuery);(function($){$.fn.collapsibleTabs=function($$options){if(!this.length)return this;var $settings=$.extend({},$.collapsibleTabs.defaults,$$options);this.each(function(){var $this=$(this);$.collapsibleTabs.instances=($.collapsibleTabs.instances.length==0?$this:$.collapsibleTabs.instances.add($this));$this.data('collapsibleTabsSettings',$settings);$this.children($settings.collapsible).each(function(){var $collapsible=$(this);$collapsible.data('collapsibleTabsSettings',{'expandedContainer':$settings.expandedContainer,'collapsedContainer':$settings.collapsedContainer,'expandedWidth':$collapsible.width(),'prevElement':$collapsible.prev()});});});if(!$.collapsibleTabs.boundEvent){$(window).delayedBind('500','resize',function(){$.collapsibleTabs.handleResize();});} |
376 | 376 | $.collapsibleTabs.handleResize();return this;};$.collapsibleTabs={instances:[],boundEvent:null,defaults:{expandedContainer:'#p-views ul',collapsedContainer:'#p-cactions ul',collapsible:'li.collapsible',shifting:false,expandCondition:function(eleWidth){return($('#left-navigation').position().left+$('#left-navigation').width())<($('#right-navigation').position().left-eleWidth);},collapseCondition:function(){return($('#left-navigation').position().left+$('#left-navigation').width())>$('#right-navigation').position().left;}},handleResize:function(e){$.collapsibleTabs.instances.each(function(){var $this=$(this),data=$this.data('collapsibleTabsSettings');if(data.shifting)return;if($this.children(data.collapsible).length>0&&data.collapseCondition()){$this.trigger("beforeTabCollapse");$.collapsibleTabs.moveToCollapsed($this.children(data.collapsible+':last'));} |
377 | 377 | if($(data.collapsedContainer+' '+data.collapsible).length>0&&data.expandCondition($(data.collapsedContainer).children(data.collapsible+":first").data('collapsibleTabsSettings').expandedWidth)){$this.trigger("beforeTabExpand");$.collapsibleTabs.moveToExpanded(data.collapsedContainer+" "+data.collapsible+':first');}});},moveToCollapsed:function(ele){var $moving=$(ele);var data=$moving.data('collapsibleTabsSettings');$(data.expandedContainer).data('collapsibleTabsSettings').shifting=true;$moving.remove().prependTo(data.collapsedContainer).data('collapsibleTabsSettings',data);$(data.expandedContainer).data('collapsibleTabsSettings').shifting=false;$.collapsibleTabs.handleResize();},moveToExpanded:function(ele){var $moving=$(ele);var data=$moving.data('collapsibleTabsSettings');$(data.expandedContainer).data('collapsibleTabsSettings').shifting=true;$moving.remove().insertAfter(data.prevElement).data('collapsibleTabsSettings',data);$(data.expandedContainer).data('collapsibleTabsSettings').shifting=false;$.collapsibleTabs.handleResize();}};})(jQuery);(function(jQuery){jQuery.each(['backgroundColor','borderBottomColor','borderLeftColor','borderRightColor','borderTopColor','color','outlineColor'],function(i,attr){jQuery.fx.step[attr]=function(fx){if(fx.state==0){fx.start=getColor(fx.elem,attr);fx.end=getRGB(fx.end);} |
378 | 378 | fx.elem.style[attr]="rgb("+[Math.max(Math.min(parseInt((fx.pos*(fx.end[0]-fx.start[0]))+fx.start[0]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[1]-fx.start[1]))+fx.start[1]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[2]-fx.start[2]))+fx.start[2]),255),0)].join(",")+")";}});function getRGB(color){var result;if(color&&color.constructor==Array&&color.length==3) |
— | — | @@ -443,7 +443,7 @@ |
444 | 444 | options.endContainer=options.startContainer;break;case'scrollToCaretPosition':options=$.extend({'force':false},options);break;} |
445 | 445 | var context=$(this).data('wikiEditor-context');var hasIframe=context!==undefined&&context.$iframe!==undefined;var needSave=false;if(hasIframe&&context.savedSelection!==null){context.fn.restoreSelection();needSave=true;} |
446 | 446 | retval=(hasIframe?context.fn:fn)[command].call(this,options);if(hasIframe&&needSave){context.fn.saveSelection();} |
447 | | -return retval;};})(jQuery);(function($){$.wikiEditor={'modules':{},'instances':[],'browsers':{'ltr':{'msie':[['>=',7]],'firefox':[['>=',2]],'opera':[['>=',9.6]],'safari':[['>=',3]],'chrome':[['>=',3]]},'rtl':{'msie':[['>=',8]],'firefox':[['>=',2]],'opera':[['>=',9.6]],'safari':[['>=',3]],'chrome':[['>=',3]]}},'imgPath':wgScriptPath+'/extensions/UsabilityInitiative/images/wikiEditor/','isSupported':function(module){var mod=module&&'browsers'in module?module:$.wikiEditor;if(typeof mod.supported!=='undefined'){return mod.supported;} |
| 447 | +return retval;};})(jQuery);(function($){$.wikiEditor={'modules':{},'instances':[],'browsers':{'ltr':{'msie':[['>=',7]],'firefox':[['>=',2]],'opera':[['>=',9.6]],'safari':[['>=',3]],'chrome':[['>=',3]],'blackberry':[['&&',false]],'ipod':[['&&',false]],'iphone':[['&&',false]]},'rtl':{'msie':[['>=',8]],'firefox':[['>=',2]],'opera':[['>=',9.6]],'safari':[['>=',3]],'chrome':[['>=',3]],'blackberry':[['&&',false]],'ipod':[['&&',false]],'iphone':[['&&',false]]}},'imgPath':wgScriptPath+'/extensions/UsabilityInitiative/images/wikiEditor/','isSupported':function(module){var mod=module&&'browsers'in module?module:$.wikiEditor;if(typeof mod.supported!=='undefined'){return mod.supported;} |
448 | 448 | if(!($.browser.name in mod.browsers[$('body').is('.rtl')?'rtl':'ltr'])){return mod.supported=true;} |
449 | 449 | var browser=mod.browsers[$('body').is('.rtl')?'rtl':'ltr'][$.browser.name];for(var condition in browser){var op=browser[condition][0];var val=browser[condition][1];if(typeof val=='string'){if(!(eval('$.browser.version'+op+'"'+val+'"'))){return mod.supported=false;}}else if(typeof val=='number'){if(!(eval('$.browser.versionNumber'+op+val))){return mod.supported=false;}}} |
450 | 450 | return mod.supported=true;},'isRequired':function(module,requirement){if(typeof module['req']!=='undefined'){for(req in module['req']){if(module['req'][req]==requirement){return true;}}} |