to reproduce:
- go to www.TiddlyWiki.com
- backstage>import
- put focus in either "URL" or "browse" input field
- press enter
- document is suddenly and unexpectedly reloaded.
To correct this, the form action should be blocked and should instead trigger "open" button. The following code can be added to the end of config.macros.importTiddlers.restart to achieve this:
config.macros.importTiddlers.restart(wizard)
{
...
wizard.formElem.action="javascript:;"
wizard.formElem.onsubmit=function() {
if (this.txtPath.value.length)
this.lastChild.firstChild.onclick();
}
}
note: this has been sucessfully implemented at http://www.TiddlyTools.com/#CoreTweaks