Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php |
— | — | @@ -72,7 +72,7 @@ |
73 | 73 | array( 'src' => 'js/plugins/jquery.namespaceSelect.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' => 124 ), |
| 76 | + array( 'src' => 'js/plugins/jquery.wikiEditor.js', 'version' => 125 ), |
77 | 77 | array( 'src' => 'js/plugins/jquery.wikiEditor.highlight.js', 'version' => 29 ), |
78 | 78 | array( 'src' => 'js/plugins/jquery.wikiEditor.toolbar.js', 'version' => 48 ), |
79 | 79 | array( 'src' => 'js/plugins/jquery.wikiEditor.dialogs.js', 'version' => 12 ), |
— | — | @@ -82,10 +82,10 @@ |
83 | 83 | array( 'src' => 'js/plugins/jquery.wikiEditor.publish.js', 'version' => 2 ), |
84 | 84 | ), |
85 | 85 | 'combined' => array( |
86 | | - array( 'src' => 'js/plugins.combined.js', 'version' => 244 ), |
| 86 | + array( 'src' => 'js/plugins.combined.js', 'version' => 245 ), |
87 | 87 | ), |
88 | 88 | 'minified' => array( |
89 | | - array( 'src' => 'js/plugins.combined.min.js', 'version' => 244 ), |
| 89 | + array( 'src' => 'js/plugins.combined.min.js', 'version' => 245 ), |
90 | 90 | ), |
91 | 91 | ), |
92 | 92 | ); |
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js |
— | — | @@ -81,13 +81,13 @@ |
82 | 82 | // Check for and make use of cached value and early opportunities to bail |
83 | 83 | if ( module ) { |
84 | 84 | // If the module doesn't exist, it's clearly not supported |
85 | | - if ( !( module in $.wikiEditor.modules ) ) { |
| 85 | + if ( typeof $.wikiEditor.modules[module] == 'undefined' ) { |
86 | 86 | return false; |
87 | 87 | } else if ( typeof $.wikiEditor.modules[module].supported !== 'undefined' ) { |
88 | 88 | // Cache hit |
89 | 89 | return $.wikiEditor.modules[module].supported; |
90 | 90 | } |
91 | | - } else if ( typeof $.wikiEditor.modules[module] !== 'undefined' ) { |
| 91 | + } else { |
92 | 92 | if ( typeof $.wikiEditor.supported !== 'undefined' ) { |
93 | 93 | // Cache hit |
94 | 94 | return $.wikiEditor.supported; |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.js |
— | — | @@ -6514,13 +6514,13 @@ |
6515 | 6515 | // Check for and make use of cached value and early opportunities to bail |
6516 | 6516 | if ( module ) { |
6517 | 6517 | // If the module doesn't exist, it's clearly not supported |
6518 | | - if ( !( module in $.wikiEditor.modules ) ) { |
| 6518 | + if ( typeof $.wikiEditor.modules[module] == 'undefined' ) { |
6519 | 6519 | return false; |
6520 | 6520 | } else if ( typeof $.wikiEditor.modules[module].supported !== 'undefined' ) { |
6521 | 6521 | // Cache hit |
6522 | 6522 | return $.wikiEditor.modules[module].supported; |
6523 | 6523 | } |
6524 | | - } else if ( typeof $.wikiEditor.modules[module] !== 'undefined' ) { |
| 6524 | + } else { |
6525 | 6525 | if ( typeof $.wikiEditor.supported !== 'undefined' ) { |
6526 | 6526 | // Cache hit |
6527 | 6527 | return $.wikiEditor.supported; |
Index: trunk/extensions/UsabilityInitiative/js/plugins.combined.min.js |
— | — | @@ -436,7 +436,7 @@ |
437 | 437 | options.endContainer=options.startContainer;break;case'scrollToCaretPosition':options=$.extend({'force':false},options);break;} |
438 | 438 | 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;} |
439 | 439 | retval=(hasIframe?context.fn:fn)[command].call(this,options);if(hasIframe&&needSave){context.fn.saveSelection();} |
440 | | -return retval;};})(jQuery);(function($){$.wikiEditor={'modules':{},'instances':[],'browsers':{'ltr':{'msie':[['>=',7]],'firefox':[['>=',2],['!=','2.0'],['!=','2.0.0.1'],['!=','2.0.0.2'],['!=','2.0.0.3'],['!=','2.0.0.4']],'opera':[['>=',9.6]],'safari':[['>=',4]]},'rtl':{'msie':[['>=',8]],'firefox':[['>=',2],['!=','2.0'],['!=','2.0.0.1'],['!=','2.0.0.2'],['!=','2.0.0.3'],['!=','2.0.0.4']],'opera':[['>=',9.6]],'safari':[['>=',4]]}},'imgPath':wgScriptPath+'/extensions/UsabilityInitiative/images/wikiEditor/','isSupported':function(module){if(module){if(!(module in $.wikiEditor.modules)){return false;}else if(typeof $.wikiEditor.modules[module].supported!=='undefined'){return $.wikiEditor.modules[module].supported;}}else if(typeof $.wikiEditor.modules[module]!=='undefined'){if(typeof $.wikiEditor.supported!=='undefined'){return $.wikiEditor.supported;}} |
| 440 | +return retval;};})(jQuery);(function($){$.wikiEditor={'modules':{},'instances':[],'browsers':{'ltr':{'msie':[['>=',7]],'firefox':[['>=',2],['!=','2.0'],['!=','2.0.0.1'],['!=','2.0.0.2'],['!=','2.0.0.3'],['!=','2.0.0.4']],'opera':[['>=',9.6]],'safari':[['>=',4]]},'rtl':{'msie':[['>=',8]],'firefox':[['>=',2],['!=','2.0'],['!=','2.0.0.1'],['!=','2.0.0.2'],['!=','2.0.0.3'],['!=','2.0.0.4']],'opera':[['>=',9.6]],'safari':[['>=',4]]}},'imgPath':wgScriptPath+'/extensions/UsabilityInitiative/images/wikiEditor/','isSupported':function(module){if(module){if(typeof $.wikiEditor.modules[module]=='undefined'){return false;}else if(typeof $.wikiEditor.modules[module].supported!=='undefined'){return $.wikiEditor.modules[module].supported;}}else{if(typeof $.wikiEditor.supported!=='undefined'){return $.wikiEditor.supported;}} |
441 | 441 | function cacheSupport(value){return module?$.wikiEditor.modules[module].supported=value:$.wikiEditor.supported=value;} |
442 | 442 | var map=module&&'browsers'in $.wikiEditor.modules[module]?$.wikiEditor.modules[module].browsers:$.wikiEditor.browsers;if(!($.browser.name in map[$('body').is('.rtl')?'rtl':'ltr'])){return cacheSupport(true);} |
443 | 443 | var browser=map[$('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 cacheSupport(false);}}else if(typeof val=='number'){if(!(eval('$.browser.versionNumber'+op+val))){return cacheSupport(false);}}} |