diff options
author | John McLear <john@mclear.co.uk> | 2011-07-19 17:41:43 +0100 |
---|---|---|
committer | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2011-07-19 20:04:30 +0100 |
commit | cf255b2979313e8dabe418597ba38d3bd25e2134 (patch) | |
tree | 17eda2340c30ac643e904b4bd2a2b0e926489003 /static | |
parent | e7b690c7fc0c48e61ee3b1275466cf103a428c37 (diff) | |
download | etherpad-lite-cf255b2979313e8dabe418597ba38d3bd25e2134.zip |
Make the pad calls work properly in IE
Diffstat (limited to 'static')
-rw-r--r-- | static/pad.html | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/static/pad.html b/static/pad.html index a9e5e791..ec0f3eb1 100644 --- a/static/pad.html +++ b/static/pad.html @@ -31,55 +31,55 @@ var clientVars = {}; // ]]> <ul id="menu_left"> <li> - <a href="javascript:void (window.pad&&pad.editbarClick('bold'));" title="Bold (ctrl-B)"> + <a onClick="window.pad&&pad.editbarClick('bold');return false" title="Bold (ctrl-B)"> <img src="../static/img/editbar_bold.gif" width="16" height="16" /> </a> </li> <li> - <a href="javascript:void (window.pad&&pad.editbarClick('italic'));" title="Italics (ctrl-I)"> + <a onClick="window.pad&&pad.editbarClick('italic'); return false;" title="Italics (ctrl-I)"> <img src="../static/img/editbar_italic.gif" width="16" height="16" /> </a> </li> <li> - <a href="javascript:void (window.pad&&pad.editbarClick('underline'));" title="Underline (ctrl-U)"> + <a onClick="window.pad&&pad.editbarClick('underline');return false;" title="Underline (ctrl-U)"> <img src="../static/img/editbar_underline.gif" width="16" height="16" /> </a> </li> <li> - <a href="javascript:void (window.pad&&pad.editbarClick('strikethrough'));" title="Strikethrough"> + <a onClick="window.pad&&pad.editbarClick('strikethrough');return false;" title="Strikethrough"> <img src="../static/img/editbar_strikethrough.gif" width="16" height="16" /> </a> </li> <li class="separator"></li> <li> - <a href="javascript:void (window.pad&&pad.editbarClick('insertunorderedlist'));" title="Toggle Bullet List"> + <a onClick="window.pad&&pad.editbarClick('insertunorderedlist');return false;" title="Toggle Bullet List"> <img src="../static/img/editbar_insertunorderedlist.gif" width="16" height="16" /> </a> </li> <li> - <a href="javascript:void (window.pad&&pad.editbarClick('indent'));" title="Indent List"> + <a onClick="window.pad&&pad.editbarClick('indent');return false;" title="Indent List"> <img src="../static/img/editbar_indent.gif" width="16" height="16" /> </a> </li> <li> - <a href="javascript:void (window.pad&&pad.editbarClick('outdent'));" title="Unindent List"> + <a onClick="window.pad&&pad.editbarClick('outdent');return false;" title="Unindent List"> <img src="../static/img/editbar_outdent.gif" width="16" height="16" /> </a> </li> <li class="separator"></li> <li> - <a href="javascript:void (window.pad&&pad.editbarClick('undo'));" title="Undo (ctrl-Z)"> + <a onClick="window.pad&&pad.editbarClick('undo');return false;" title="Undo (ctrl-Z)"> <img src="../static/img/editbar_undo.gif" width="16" height="16" /> </a> </li> <li> - <a href="javascript:void (window.pad&&pad.editbarClick('redo'));" title="Redo (ctrl-Y)"> + <a onClick="window.pad&&pad.editbarClick('redo');return false;" title="Redo (ctrl-Y)"> <img src="../static/img/editbar_redo.gif" width="16" height="16" /> </a> </li> <li class="separator"></li> <li> - <a href="javascript:void (window.pad&&pad.editbarClick('clearauthorship'));" title="Clear Authorship Colors"> + <a onClick="window.pad&&pad.editbarClick('clearauthorship');return false;" title="Clear Authorship Colors"> <img src="../static/img/editbar_clearauthorship.gif" width="16" height="16" /> </a> </li> @@ -88,18 +88,18 @@ var clientVars = {}; // ]]> <ul id="menu_right"> <li> - <a href="javascript:void (window.pad&&pad.editbarClick('readonly'));" title="Create a readonly link for this pad"> + <a onClick="window.pad&&pad.editbarClick('readonly');return false;" title="Create a readonly link for this pad"> <img src="../static/img/editbar_readonly.gif" width="16" height="16" /> </a> </li> <li> - <a href="javascript:void (window.pad&&pad.editbarClick('import_export'));" + <a onClick="window.pad&&pad.editbarClick('import_export');return false;" title="(Placeholder, not implemented so far) Import/Export from/to different document formats"> <img src="../static/img/editbar_import_export.gif" width="16" height="16" /> </a> </li> <li> - <a href="javascript:void (window.pad&&pad.editbarClick('embed'));" title="Embed this pad"> + <a onClick="window.pad&&pad.editbarClick('embed');return false;" title="Embed this pad"> <img src="../static/img/editbar_embed.gif" width="16" height="16" /> </a> </li> @@ -117,7 +117,7 @@ We removed this feature cause its not worth the space it needs in the editbar </li>--> <li class="separator"></li> <!--<li> - <a href="javascript:void (window.pad&&pad.editbarClick('chat'));" + <a onClick="window.pad&&pad.editbarClick('chat'); return false;" title="(Placeholder, not implemented so far) Open the chat for this pad"> <img src="../static/img/editbar_chat.gif" width="16" height="16" /> </a> @@ -131,7 +131,7 @@ We removed this feature cause its not worth the space it needs in the editbar </a> </li> <li> - <a href="javascript:void (window.pad&&pad.editbarClick('showusers'));" title="Show connected users"> + <a onClick="window.pad&&pad.editbarClick('showusers');return false;" title="Show connected users"> <img id="showusersicon" src="../static/img/editbar_showusers.gif" width="16" height="16" /> <span id="online_count">1</span> </a> </li> @@ -218,7 +218,7 @@ Use this link to share a read-only version of your pad:<input id="readonlyInput" </div> <div id="chaticon"> -<a href="javascript:chat.show();" +<a onClick="chat.show();return false;" title="Open the chat for this pad"> <span id="chatlabel">Chat</span> <img src="../static/img/editbar_chat.gif" width="16" height="16" /> |