Permalink
Browse files

twinkleconfig: work around Chrome save issue

I know we got rid of JavaScript URLs, but until a better fix can be found, this is a necessary evil.
  • Loading branch information...
atlight committed Jun 12, 2011
1 parent bdd55cc commit e7ba15ca39df0cc551826869d33e456dda5be510
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/twinkleconfig.js
View
@@ -880,7 +880,7 @@ Twinkle.config.init = function twinkleconfigInit() {
var tocnumber = 1;
var contentform = document.createElement("form");
contentform.setAttribute("action", "#tw-save");
contentform.setAttribute("action", "javascript:void(0)"); // was #tw-save - changed to void(0) to work around Chrome issue
contentform.addEventListener("submit", Twinkle.config.save, true);
contentdiv.appendChild(contentform);

0 comments on commit e7ba15c

Please sign in to comment.