From 42e90eebc6ee60dfc56f200a4ded0c2ff42f4683 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 27 Aug 2009 13:34:38 +0200 Subject: Fixed IE compatibility for recent JavaScript changes Ignore-this: 62d43ad8ce4d6c506839a0da4a8ec40 Note: development is part of ICKE 2.0 project http://www.icke-projekt.de darcs-hash:20090827113438-6e07b-4378f3835e023b81dc12ce93e2c5b20cb8ad9a59.gz --- lib/scripts/drag.js | 2 +- lib/scripts/linkwiz.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/scripts/drag.js b/lib/scripts/drag.js index 1294be602..197835f53 100644 --- a/lib/scripts/drag.js +++ b/lib/scripts/drag.js @@ -93,7 +93,7 @@ drag = { */ evY: function(e){ return (e.pageY) ? e.pageY : e.clientY + document.body.scrollTop; - }, + } }; diff --git a/lib/scripts/linkwiz.js b/lib/scripts/linkwiz.js index 9183ba492..68b37b176 100644 --- a/lib/scripts/linkwiz.js +++ b/lib/scripts/linkwiz.js @@ -198,8 +198,8 @@ linkwiz = { var stxt = sel.getText(); if(!stxt) stxt=title; - var link = '[['+linkwiz.entry.value; - if(stxt) link += '|'+stxt; + var link = '[['+linkwiz.entry.value+'|'; + if(stxt) link += stxt; link += ']]'; var so = linkwiz.entry.value.length+3; @@ -266,6 +266,6 @@ linkwiz = { }else{ linkwiz.hide(); } - }, + } }; -- cgit v1.2.3