From e0675c474f8e08d16db564a2833fba4b65e44f52 Mon Sep 17 00:00:00 2001 From: julmis Date: Sat, 11 Jun 2005 11:01:03 +0000 Subject: [PATCH] Fixing cut 'n' paste mozilla confirm line again... --- lib/editor/htmlarea.php | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/lib/editor/htmlarea.php b/lib/editor/htmlarea.php index 767f28050b7..6b8d27e649c 100644 --- a/lib/editor/htmlarea.php +++ b/lib/editor/htmlarea.php @@ -1882,31 +1882,14 @@ HTMLArea.prototype.execCommand = function(cmdID, UI, param) { } } catch (e) { if (HTMLArea.is_gecko) { - ", $strgecko); + if (confirm("', '\\n', $strmoz); - echo "var geckonotice = "; - $cnt = count($lines); - $i = 2; - foreach ($lines as $line) { + echo addslashes($strmoz); - if (empty($line)) { - continue; - } - - $line = addslashes(trim($line)); - - if ($cnt > $i) { - echo "\"$line\\n\" + \n"; - } else { - echo "\"$line\";\n"; - } - $i++; - } - - ?> - if (confirm(geckonotice)) + ?>")) window.open("http://moodle.org/mozillahelp"); } }