TiddlyWiki.org

Ticket #639 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

pressing "enter" in backstage>import reloads entire document

Reported by: EricShulman Assigned to: JeremyRuston
Priority: minor Milestone:
Component: core Version:
Severity: medium Keywords:
Cc:

Description (Last modified by EricShulman)

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

Change History

17/05/08 13:27:49 changed by EricShulman

  • description changed.

17/05/08 15:55:37 changed by EricShulman

  • description changed.

21/05/08 15:10:21 changed by MartinBudden

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in changeset:5113