Index: trunk/phase3/skins/common/sticky.js |
— | — | @@ -36,7 +36,7 @@ |
37 | 37 | // emulate css 'position: fixed' in IE5+ Win |
38 | 38 | // code by aclover@1value.com |
39 | 39 | fix_elements = new Array(); |
40 | | - |
| 40 | + |
41 | 41 | function fix_event(){ |
42 | 42 | var i; |
43 | 43 | for (i=0; i < fix_elements.length; i++){ |
— | — | @@ -95,7 +95,7 @@ |
96 | 96 | else if(document.all){this.css=document.all[eID].style;} |
97 | 97 | return this |
98 | 98 | } |
99 | | - |
| 99 | + |
100 | 100 | function checkBrowser(){ |
101 | 101 | this.ver=navigator.appVersion; |
102 | 102 | this.name=navigator.appName; |
— | — | @@ -112,13 +112,13 @@ |
113 | 113 | this.standards=document.getElementById?true:false; |
114 | 114 | this.dhtml=this.standards||this.ie4||this.ns4; |
115 | 115 | } |
116 | | - |
| 116 | + |
117 | 117 | function showMe(eID){ |
118 | 118 | myFloater=new makeLayerObj(eID) |
119 | 119 | myFloater.css.visibility="visible"; |
120 | 120 | } |
121 | | - |
| 121 | + |
122 | 122 | function hideMe(eID){ |
123 | 123 | myFloater=new makeLayerObj(eID) |
124 | 124 | myFloater.css.visibility="hidden"; |
125 | | - } |
\ No newline at end of file |
| 125 | + } |
Index: trunk/phase3/skins/common/ajaxsearch.js |
— | — | @@ -44,7 +44,7 @@ |
45 | 45 | alert("Error: " + request.status + " " + request.statusText + ": " + request.responseText); |
46 | 46 | return; |
47 | 47 | } |
48 | | - |
| 48 | + |
49 | 49 | var result = request.responseText; |
50 | 50 | |
51 | 51 | //body.innerHTML = result; |
— | — | @@ -90,7 +90,7 @@ |
91 | 91 | { |
92 | 92 | return; |
93 | 93 | } |
94 | | - |
| 94 | + |
95 | 95 | sajax_do_call( "wfSajaxSearch", [ x ], Searching_SetResult ); |
96 | 96 | } |
97 | 97 | } |
Index: trunk/phase3/skins/common/metadata.js |
— | — | @@ -11,17 +11,17 @@ |
12 | 12 | var box = document.getElementById(tableId); |
13 | 13 | if (!box) |
14 | 14 | return false; |
15 | | - |
| 15 | + |
16 | 16 | var tbody = box.getElementsByTagName('tbody')[0]; |
17 | | - |
| 17 | + |
18 | 18 | var row = document.createElement('tr'); |
19 | | - |
| 19 | + |
20 | 20 | var col = document.createElement('td'); |
21 | 21 | col.colSpan = 2; |
22 | | - |
| 22 | + |
23 | 23 | var link = document.createElement('a'); |
24 | 24 | link.href = '#'; |
25 | | - |
| 25 | + |
26 | 26 | link.onclick = function() { |
27 | 27 | if (box.className == 'mw_metadata collapsed') { |
28 | 28 | changeText(link, hideText); |
— | — | @@ -32,17 +32,17 @@ |
33 | 33 | } |
34 | 34 | return false; |
35 | 35 | } |
36 | | - |
| 36 | + |
37 | 37 | var text = document.createTextNode(hideText); |
38 | | - |
| 38 | + |
39 | 39 | link.appendChild(text); |
40 | 40 | col.appendChild(link); |
41 | 41 | row.appendChild(col); |
42 | 42 | tbody.appendChild(row); |
43 | | - |
| 43 | + |
44 | 44 | // And collapse! |
45 | 45 | link.onclick(); |
46 | | - |
| 46 | + |
47 | 47 | return true; |
48 | 48 | } |
49 | 49 | return false; |
Index: trunk/phase3/skins/common/protect.js |
— | — | @@ -3,29 +3,29 @@ |
4 | 4 | var box = document.getElementById(tableId); |
5 | 5 | if (!box) |
6 | 6 | return false; |
7 | | - |
| 7 | + |
8 | 8 | var tbody = box.getElementsByTagName('tbody')[0]; |
9 | 9 | var row = document.createElement('tr'); |
10 | 10 | tbody.appendChild(row); |
11 | | - |
| 11 | + |
12 | 12 | row.appendChild(document.createElement('td')); |
13 | 13 | var col2 = document.createElement('td'); |
14 | 14 | row.appendChild(col2); |
15 | | - |
| 15 | + |
16 | 16 | var check = document.createElement('input'); |
17 | 17 | check.id = "mwProtectUnchained"; |
18 | 18 | check.type = "checkbox"; |
19 | 19 | check.onclick = protectChainUpdate; |
20 | 20 | col2.appendChild(check); |
21 | | - |
| 21 | + |
22 | 22 | var space = document.createTextNode(" "); |
23 | 23 | col2.appendChild(space); |
24 | | - |
| 24 | + |
25 | 25 | var label = document.createElement('label'); |
26 | 26 | label.setAttribute("for", "mwProtectUnchained"); |
27 | 27 | label.appendChild(document.createTextNode(labelText)); |
28 | 28 | col2.appendChild(label); |
29 | | - |
| 29 | + |
30 | 30 | if (protectAllMatch()) { |
31 | 31 | check.checked = false; |
32 | 32 | protectEnable(false); |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | check.checked = true; |
35 | 35 | protectEnable(true); |
36 | 36 | } |
37 | | - |
| 37 | + |
38 | 38 | return true; |
39 | 39 | } |
40 | 40 | return false; |
Index: trunk/phase3/skins/common/preview.js |
— | — | @@ -24,10 +24,10 @@ |
25 | 25 | } |
26 | 26 | prevReq = openXMLHttpRequest(); |
27 | 27 | if( !prevReq ) return false; |
28 | | - |
| 28 | + |
29 | 29 | prevReq.onreadystatechange = updatePreviewText; |
30 | 30 | prevReq.open("POST", postUrl, true); |
31 | | - |
| 31 | + |
32 | 32 | var postData = 'wpTextbox1=' + encodeURIComponent(text); |
33 | 33 | prevReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); |
34 | 34 | prevReq.send(postData); |
Index: trunk/phase3/skins/common/wikibits.js |
— | — | @@ -356,7 +356,7 @@ |
357 | 357 | insertTags(item.tagOpen, item.tagClose, item.sampleText); |
358 | 358 | return false; |
359 | 359 | }; |
360 | | - |
| 360 | + |
361 | 361 | parent.appendChild(image); |
362 | 362 | return true; |
363 | 363 | } |
— | — | @@ -367,13 +367,13 @@ |
368 | 368 | |
369 | 369 | var textbox = document.getElementById('wpTextbox1'); |
370 | 370 | if (!textbox) { return false; } |
371 | | - |
| 371 | + |
372 | 372 | // Don't generate buttons for browsers which don't fully |
373 | 373 | // support it. |
374 | 374 | if (!document.selection && textbox.selectionStart === null) { |
375 | 375 | return false; |
376 | 376 | } |
377 | | - |
| 377 | + |
378 | 378 | for (var i in mwEditButtons) { |
379 | 379 | mwInsertEditButton(toolbar, mwEditButtons[i]); |
380 | 380 | } |
— | — | @@ -1030,7 +1030,7 @@ |
1031 | 1031 | if (typeof el == "undefined") { return el }; |
1032 | 1032 | if (el.innerText) return el.innerText; // Not needed but it is faster |
1033 | 1033 | var str = ""; |
1034 | | - |
| 1034 | + |
1035 | 1035 | var cs = el.childNodes; |
1036 | 1036 | var l = cs.length; |
1037 | 1037 | for (var i = 0; i < l; i++) { |
— | — | @@ -1107,8 +1107,8 @@ |
1108 | 1108 | } else { |
1109 | 1109 | arrowHTML = '<img src="'+ ts_image_path + ts_image_up + '" alt="↑"/>'; |
1110 | 1110 | span.setAttribute('sortdir','down'); |
1111 | | - } |
1112 | | - |
| 1111 | + } |
| 1112 | + |
1113 | 1113 | // We appendChild rows that already exist to the tbody, so it moves them rather than creating new ones |
1114 | 1114 | // don't do sortbottom rows |
1115 | 1115 | for (var i = 0; i < newRows.length; i++) { |
— | — | @@ -1189,13 +1189,13 @@ |
1190 | 1190 | var bb = ts_parseFloat(b[1].replace(/[^0-9.]/g,'')); |
1191 | 1191 | return (aa != bb ? aa - bb : a[2] - b[2]); |
1192 | 1192 | } |
1193 | | - |
| 1193 | + |
1194 | 1194 | function ts_sort_numeric(a,b) { |
1195 | 1195 | var aa = ts_parseFloat(a[1]); |
1196 | 1196 | var bb = ts_parseFloat(b[1]); |
1197 | 1197 | return (aa != bb ? aa - bb : a[2] - b[2]); |
1198 | 1198 | } |
1199 | | - |
| 1199 | + |
1200 | 1200 | function ts_sort_caseinsensitive(a,b) { |
1201 | 1201 | var aa = a[1].toLowerCase(); |
1202 | 1202 | var bb = b[1].toLowerCase(); |
Index: trunk/phase3/skins/common/IEFixes.js |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | |
35 | 35 | if (imageUrl.substr(imageUrl.length-4).toLowerCase() == '.png') { |
36 | 36 | var logospan = logoa.appendChild(document.createElement('span')); |
37 | | - |
| 37 | + |
38 | 38 | logoa.style.backgroundImage = 'none'; |
39 | 39 | logospan.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=' + imageUrl + ')'; |
40 | 40 | logospan.style.height = '100%'; |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | logospan.style.width = logoa.currentStyle.width; |
43 | 43 | logospan.style.cursor = 'hand'; |
44 | 44 | // Center image with hack for IE5.5 |
45 | | - if (document.documentElement.dir == "rtl") |
| 45 | + if (document.documentElement.dir == "rtl") |
46 | 46 | { |
47 | 47 | logospan.style.right = '50%'; |
48 | 48 | logospan.style.setExpression('marginRight', '"-" + (this.offsetWidth / 2) + "px"'); |
— | — | @@ -53,7 +53,7 @@ |
54 | 54 | } |
55 | 55 | logospan.style.top = '50%'; |
56 | 56 | logospan.style.setExpression('marginTop', '"-" + (this.offsetHeight / 2) + "px"'); |
57 | | - |
| 57 | + |
58 | 58 | var linkFix = logoa.appendChild(logoa.cloneNode()); |
59 | 59 | linkFix.style.position = 'absolute'; |
60 | 60 | linkFix.style.height = '100%'; |
— | — | @@ -124,4 +124,4 @@ |
125 | 125 | for (var i=0; i < expandedURLs.length; i++) |
126 | 126 | if (expandedURLs[i]) |
127 | 127 | expandedURLs[i].removeNode(true); |
128 | | -} |
\ No newline at end of file |
| 128 | +} |