Index: trunk/extensions/Collection/js/jquery.ui.js |
— | — | @@ -83,7 +83,7 @@ |
84 | 84 | continue;var t=this.options.toleranceElement?$(this.options.toleranceElement,this.items[i].item):this.items[i].item;if(!fast){this.items[i].width=t[0].offsetWidth;this.items[i].height=t[0].offsetHeight;} |
85 | 85 | var p=t.offset();this.items[i].left=p.left;this.items[i].top=p.top;};if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this);}else{for(var i=this.containers.length-1;i>=0;i--){var p=this.containers[i].element.offset();this.containers[i].containerCache.left=p.left;this.containers[i].containerCache.top=p.top;this.containers[i].containerCache.width=this.containers[i].element.outerWidth();this.containers[i].containerCache.height=this.containers[i].element.outerHeight();};}},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var i=this.items.length-1;i>=0;i--) |
86 | 86 | this.items[i].item.removeData("sortable-item");},_createPlaceholder:function(that){var self=that||this,o=self.options;if(!o.placeholder||o.placeholder.constructor==String){var className=o.placeholder;o.placeholder={element:function(){var el=$(document.createElement(self.currentItem[0].nodeName)).addClass(className||"ui-sortable-placeholder")[0];if(!className){el.style.visibility="hidden";document.body.appendChild(el);el.innerHTML=self.currentItem[0].innerHTML;document.body.removeChild(el);};return el;},update:function(container,p){if(className&&!o.forcePlaceholderSize)return;if(!p.height()){p.height(self.currentItem.innerHeight()-parseInt(self.currentItem.css('paddingTop')||0,10)-parseInt(self.currentItem.css('paddingBottom')||0,10));};if(!p.width()){p.width(self.currentItem.innerWidth()-parseInt(self.currentItem.css('paddingLeft')||0,10)-parseInt(self.currentItem.css('paddingRight')||0,10));};}};} |
87 | | -self.placeholder=$(o.placeholder.element.call(self.element,self.currentItem)) |
| 87 | +self.placeholder=$(o.placeholder.element.call(self.element,self.currentItem)); |
88 | 88 | self.currentItem.parent()[0].appendChild(self.placeholder[0]);self.placeholder[0].parentNode.insertBefore(self.placeholder[0],self.currentItem[0]);o.placeholder.update(self,self.placeholder);},_contactContainers:function(e){for(var i=this.containers.length-1;i>=0;i--){if(this._intersectsWith(this.containers[i].containerCache)){if(!this.containers[i].containerCache.over){if(this.currentContainer!=this.containers[i]){var dist=10000;var itemWithLeastDistance=null;var base=this.positionAbs[this.containers[i].floating?'left':'top'];for(var j=this.items.length-1;j>=0;j--){if(!contains(this.containers[i].element[0],this.items[j].item[0]))continue;var cur=this.items[j][this.containers[i].floating?'left':'top'];if(Math.abs(cur-base)<dist){dist=Math.abs(cur-base);itemWithLeastDistance=this.items[j];}} |
89 | 89 | if(!itemWithLeastDistance&&!this.options.dropOnEmpty) |
90 | 90 | continue;this.currentContainer=this.containers[i];itemWithLeastDistance?this.options.sortIndicator.call(this,e,itemWithLeastDistance,null,true):this.options.sortIndicator.call(this,e,null,this.containers[i].element,true);this._propagate("change",e);this.containers[i]._propagate("change",e,this);this.options.placeholder.update(this.currentContainer,this.placeholder);} |
Index: trunk/extensions/Collection/js/jstorage.js |
— | — | @@ -94,7 +94,7 @@ |
95 | 95 | } |
96 | 96 | /* Check if browser supports userData behavior */ |
97 | 97 | else{ |
98 | | - this._storage_elm = document.createElement('link') |
| 98 | + this._storage_elm = document.createElement('link'); |
99 | 99 | if("addBehavior" in this._storage_elm){ |
100 | 100 | |
101 | 101 | /* Use a DOM element to act as userData storage */ |
Index: trunk/extensions/WikimediaMobile/tests/user_agent.js |
— | — | @@ -24,27 +24,27 @@ |
25 | 25 | shouldIgnore("Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4"); |
26 | 26 | // Chrome on OS X |
27 | 27 | shouldIgnore("Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10"); |
28 | | -} |
| 28 | +}; |
29 | 29 | |
30 | 30 | var doesMatch = function(user_agent) { |
31 | | - return regex.test(user_agent); |
32 | | -} |
| 31 | + return regex.test(user_agent); |
| 32 | +}; |
33 | 33 | |
34 | 34 | var runTest = function(user_agent, should_be) { |
35 | 35 | var result = doesMatch(user_agent); |
36 | 36 | if(result == should_be) { |
37 | | - print("OK") |
| 37 | + print("OK"); |
38 | 38 | } else { |
39 | | - print("FAIL: '" + user_agent + "'") |
| 39 | + print("FAIL: '" + user_agent + "'"); |
40 | 40 | } |
41 | | -} |
| 41 | +}; |
42 | 42 | |
43 | 43 | var shouldRedirect = function(user_agent) { |
44 | | - runTest(user_agent, true); |
45 | | -} |
| 44 | + runTest(user_agent, true); |
| 45 | +}; |
46 | 46 | |
47 | 47 | var shouldIgnore = function(user_agent) { |
48 | | - runTest(user_agent, false); |
49 | | -} |
| 48 | + runTest(user_agent, false); |
| 49 | +}; |
50 | 50 | |
51 | 51 | runTests(); |
Index: trunk/extensions/WikiBhasha/src/js/core/shareWikiBhasha.js |
— | — | @@ -98,7 +98,7 @@ |
99 | 99 | return message; |
100 | 100 | } |
101 | 101 | } |
102 | | -} |
| 102 | +}; |
103 | 103 | |
104 | 104 | wbShareOnExternSystem = wikiBhasha.windowManagement.shareOnExternSystemWindow; |
105 | 105 | |
Index: trunk/extensions/LiquidThreads/jquery/js2.combined.js |
— | — | @@ -8156,4 +8156,4 @@ |
8157 | 8157 | */ |
8158 | 8158 | mw.addOnloadHook = function( func ) { |
8159 | 8159 | $j(document).ready( func ); |
8160 | | -} |
| 8160 | +}; |
Index: trunk/extensions/LiquidThreads/newmessages.js |
— | — | @@ -85,7 +85,7 @@ |
86 | 86 | var spinner = $j('<div class="mw-ajax-loader"/>'); |
87 | 87 | $j(form).prepend( spinner ); |
88 | 88 | |
89 | | - liquidThreads.apiRequest |
| 89 | + liquidThreads.apiRequest; |
90 | 90 | |
91 | 91 | var markReadParameters = |
92 | 92 | { |
Index: trunk/extensions/AjaxShowEditors/AjaxShowEditors.js |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | } |
17 | 17 | |
18 | 18 | wgAjaxShowEditors.allowRefresh(); |
19 | | -} |
| 19 | +}; |
20 | 20 | |
21 | 21 | |
22 | 22 | // Ask for new data & update UI |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | if(!ShowEditorsCounting) { |
40 | 40 | wgAjaxShowEditors.countup(); |
41 | 41 | } |
42 | | -} |
| 42 | +}; |
43 | 43 | |
44 | 44 | wgAjaxShowEditors.countup = function() { |
45 | 45 | ShowEditorsCounting = true; |
— | — | @@ -53,12 +53,12 @@ |
54 | 54 | } |
55 | 55 | } |
56 | 56 | setTimeout( "wgAjaxShowEditors.countup()", 1000 ); |
57 | | -} |
| 57 | +}; |
58 | 58 | |
59 | 59 | // callback to allow refresh |
60 | 60 | wgAjaxShowEditors.allowRefresh = function() { |
61 | 61 | canRefresh = true; |
62 | | -} |
| 62 | +}; |
63 | 63 | |
64 | 64 | // Register our initialization function. |
65 | 65 | hookEvent( "load", wgAjaxShowEditors.onLoad); |
Index: trunk/extensions/Configure/Configure.js |
— | — | @@ -285,7 +285,7 @@ |
286 | 286 | return; |
287 | 287 | } |
288 | 288 | |
289 | | - var isMatch = function(element) { return element.description.indexOf( query ) !== -1; } |
| 289 | + var isMatch = function(element) { return element.description.indexOf( query ) !== -1; }; |
290 | 290 | for( var i=0; i<allSettings.length; ++i ) { |
291 | 291 | var data = allSettings[i]; |
292 | 292 | if ( isMatch( data ) ) { |
— | — | @@ -365,7 +365,7 @@ |
366 | 366 | // Based on class, do something. |
367 | 367 | var elementType = ' '+div.className+' '; |
368 | 368 | |
369 | | - var isType = function(type) { return elementType.indexOf( ' '+type+' ' ) !== -1; } |
| 369 | + var isType = function(type) { return elementType.indexOf( ' '+type+' ' ) !== -1; }; |
370 | 370 | |
371 | 371 | if ( isType('assoc') ) { |
372 | 372 | // If it's too big to display as an associative array, it's too big to display as a summary. |
Index: trunk/extensions/ArticleFeedback/modules/jquery.articleFeedback/jquery.articleFeedback.js |
— | — | @@ -358,7 +358,7 @@ |
359 | 359 | for ( var key in context.options.pitches ) { |
360 | 360 | // Dont' bother checking the condition if there's a cookie that says |
361 | 361 | // the user has rejected this within 3 days of right now |
362 | | - var display = $.cookie( 'jquery.articleFeedback.pitch.' + key ) |
| 362 | + var display = $.cookie( 'jquery.articleFeedback.pitch.' + key ); |
363 | 363 | if ( display !== 'hide' && context.options.pitches[key].condition() ) { |
364 | 364 | context.$ui |
365 | 365 | .find( '.articleFeedback-pitch[rel="' + key + '"]' ) |
Index: trunk/extensions/ContributorsAddon/ContributorsAddon.js |
— | — | @@ -46,11 +46,11 @@ |
47 | 47 | function findPos(obj) { |
48 | 48 | var curleft = curtop = 0; |
49 | 49 | if (obj.offsetParent) { |
50 | | - curleft = obj.offsetLeft |
51 | | - curtop = obj.offsetTop |
| 50 | + curleft = obj.offsetLeft; |
| 51 | + curtop = obj.offsetTop; |
52 | 52 | while (obj = obj.offsetParent) { |
53 | | - curleft += obj.offsetLeft |
54 | | - curtop += obj.offsetTop |
| 53 | + curleft += obj.offsetLeft; |
| 54 | + curtop += obj.offsetTop; |
55 | 55 | } |
56 | 56 | } |
57 | 57 | return [curleft,curtop]; |
Index: trunk/extensions/UploadWizard/test/jasmine/spec/mediawiki.language.parser.spec.js |
— | — | @@ -236,19 +236,19 @@ |
237 | 237 | */ |
238 | 238 | mw.Language.resetForLang = function( lang, fn ) { |
239 | 239 | mw.Language.digitTransformTable = null; |
240 | | - // Load the current language js file if it has a langKey |
| 240 | + // Load the current language js file if it has a langKey |
241 | 241 | var lang = mw.Language.getLangTransformKey( lang ); |
242 | 242 | if( cachedConvertPlural[lang] ) { |
243 | 243 | mw.Language.convertPlural = cachedConvertPlural[lang]; |
244 | 244 | fn(); |
245 | | - } else { |
| 245 | + } else { |
246 | 246 | mw.log( lang + " load msg transform" ); |
247 | 247 | $j.getScript( wgScriptPath + '/resources/mediawiki.language/languages/' + lang.toLowerCase() + '.js' , function(){ |
248 | 248 | cachedConvertPlural[lang] = mw.Language.convertPlural; |
249 | 249 | fn(); |
250 | | - }); |
| 250 | + }); |
251 | 251 | } |
252 | | - } |
| 252 | + }; |
253 | 253 | |
254 | 254 | |
255 | 255 | $j.each( jasmineMsgSpec, function( i, test ) { |
Index: trunk/extensions/UploadWizard/resources/mw.UploadApiProcessor.js |
— | — | @@ -185,7 +185,7 @@ |
186 | 186 | |
187 | 187 | |
188 | 188 | } |
189 | | - */ |
| 189 | + * /; |
190 | 190 | |
191 | 191 | /* |
192 | 192 | // this doesn't seem to do anything |
Index: trunk/extensions/UploadWizard/resources/combined.min.js |
— | — | @@ -7677,7 +7677,7 @@ |
7678 | 7678 | mw.addTemplateTransform({ |
7679 | 7679 | 'PLURAL':mw.Language.procPLURAL, |
7680 | 7680 | 'GENDER':mw.Language.procGENDER |
7681 | | -}) |
| 7681 | +}); |
7682 | 7682 | |
7683 | 7683 | mw.Language.doneSetup=true; |
7684 | 7684 | } |
Index: trunk/extensions/AjaxQueryPages/AjaxQueryPages.js |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | |
35 | 35 | els[i].setAttribute("href", "javascript:wgAjaxQueryPages.call(" + jsparams + ")"); |
36 | 36 | } |
37 | | -} |
| 37 | +}; |
38 | 38 | |
39 | 39 | wgAjaxQueryPages.call = function( offset, limit, dir ) { |
40 | 40 | if( wgAjaxQueryPages.inprogress ) |
— | — | @@ -48,7 +48,7 @@ |
49 | 49 | // Reallow request if it is not done in 2 seconds |
50 | 50 | wgAjaxQueryPages.timeoutID = window.setTimeout( function() { wgAjaxQueryPages.inprogress = false; }, 2000); |
51 | 51 | |
52 | | -} |
| 52 | +}; |
53 | 53 | |
54 | 54 | html2dom = function( html ) { |
55 | 55 | var ret = document.createDocumentFragment(); |
— | — | @@ -59,7 +59,7 @@ |
60 | 60 | ret.appendChild( tmp.firstChild ); |
61 | 61 | } |
62 | 62 | return ret; |
63 | | -} |
| 63 | +}; |
64 | 64 | |
65 | 65 | wgAjaxQueryPages.processResult = function(request) { |
66 | 66 | // convert html to dom, need to merge branches/hashar@21917 to use the responseXML |
— | — | @@ -70,6 +70,6 @@ |
71 | 71 | spcontent[0].innerHTML = response.firstChild.innerHTML ; |
72 | 72 | |
73 | 73 | wgAjaxQueryPages.inprogress = false; |
74 | | -} |
| 74 | +}; |
75 | 75 | |
76 | 76 | hookEvent( "load", wgAjaxQueryPages.onLoad ); |