Fixed a problem where it would jump up and down the page when
authorrich <rich>
Tue, 26 Oct 2004 17:50:23 +0000 (17:50 +0000)
committerrich <rich>
Tue, 26 Oct 2004 17:50:23 +0000 (17:50 +0000)
buttons were pressed.

debian/changelog
html/_js/editor.js

index de4813a..aec1bea 100644 (file)
@@ -1,4 +1,4 @@
-cocanwiki (1.3.5-2) unstable; urgency=low
+cocanwiki (1.3.5-3) unstable; urgency=low
 
   * Initial Release.
 
index 7479059..84b930e 100644 (file)
@@ -1,6 +1,6 @@
 /* Javascript for OCAMLWIKI.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: editor.js,v 1.3 2004/10/26 17:42:08 rich Exp $
+ * $Id: editor.js,v 1.4 2004/10/26 17:50:23 rich Exp $
  */
 
 var delay = 1000;              // Delay in milliseconds before updating.
@@ -52,14 +52,14 @@ function init_edit_buttons (div_id, content_id, preview_id)
   // HTML for the edit buttons.
   var args = "'" + content_id + "', '" + preview_id + "'";
   var edit_buttons_html =
-    "<a href=\"#\" onmousedown=\"link(" + args + "); return false;\" title=\"Select some text and click this to make a link\"><u>Link</u></a>" +
+    "<a onmousedown=\"link(" + args + "); return false;\" title=\"Select some text and click this to make a link\"><u>Link</u></a>" +
     "<span class=\"spacer\"></span>" +
-    "<a href=\"#\" onmousedown=\"bold(" + args + "); return false;\" title=\"Select some text and click this to make it bold\"><strong>Bold</strong></a>" +
-    "<a href=\"#\" onmousedown=\"italic(" + args + "); return false;\" title=\"Select some text and click this to make it italic\"><em>Italic</em></a>" +
-    "<a href=\"#\" onmousedown=\"strikeout(" + args + "); return false;\" title=\"Select some text and click this to strike through it\"><s>Strike</s></a>" +
+    "<a onmousedown=\"bold(" + args + "); return false;\" title=\"Select some text and click this to make it bold\"><strong>Bold</strong></a>" +
+    "<a onmousedown=\"italic(" + args + "); return false;\" title=\"Select some text and click this to make it italic\"><em>Italic</em></a>" +
+    "<a onmousedown=\"strikeout(" + args + "); return false;\" title=\"Select some text and click this to strike through it\"><s>Strike</s></a>" +
     "<span class=\"spacer\"></span>" +
-    "<a href=\"#\" onmousedown=\"bullet(" + args + "); return false;\" title=\"Select lines of text and click this to make it a bullet list\"><big>&#x2219;&#8212;</big></a>" +
-    "<a href=\"#\" onmousedown=\"numbered(" + args + "); return false;\" title=\"Select lines of text and click this to make it a numbered list\">1&#8212;</a>" +
+    "<a onmousedown=\"bullet(" + args + "); return false;\" title=\"Select lines of text and click this to make it a bullet list\"><big>&#x2219;&#8212;</big></a>" +
+    "<a onmousedown=\"numbered(" + args + "); return false;\" title=\"Select lines of text and click this to make it a numbered list\">1&#8212;</a>" +
     "<br/>"
     ;
   var div = document.getElementById (div_id);