r29802 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29801‎ | r29802 | r29803 >
Date:16:14, 15 January 2008
Author:thomasv
Status:old
Tags:
Comment:
fix for IE
Modified paths:
  • /trunk/extensions/ProofreadPage/proofread_index.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/proofread_index.js
@@ -13,7 +13,7 @@
1414
1515 function proofreadpage_index_init() {
1616
17 - if(!self.proofreadpage_debug) return;
 17+ if(!self.proofreadpage_debug) return;
1818
1919 var toolbar = document.getElementById("toolbar");
2020 toolbar.parentNode.removeChild(toolbar);
@@ -86,6 +86,9 @@
8787 param_name = m[0];
8888
8989 value = form.elements[param_name].value;
 90+ //remove trailing \n
 91+ value = value.replace(/\n$/,'');
 92+ //replace pipe symbol
9093 value = value.replace(/\|/g,'{{!}}');
9194 //not for links!
9295 value = value.replace(/\[\[(.*?)\{\{!\}\}(.*?)\]\]/g,'[[$1|$2]]');

Status & tagging log