> http://dl.dropbox.com/u/2161814/fake%20patient.html

You are using InlineJavascriptPlugin v1.8.0 (which is over 3 years
old!!).  The current version is 1.9.6

One of the changes (see v1.9.0) was to automatically add 'return
false' handling to "onclick" scripts.  This prevents the double-
invocation of the code.

Note: you can also fix the problem *without updating the plugin* by
ensuring that your onclick code always does an explicit "return
false;" not just "return;".  Thus:

----------------
{{scriptbutton{
<script label="start new problem">
var title=prompt(...);
if(!title)return false;
if(store.tiddlerExists(title)) {
  if(!confirm(...)) return false;
}
var tags="...";
store.saveTiddler(...);
autoSaveChanges(...);
story.displayTiddler(...);
return false;
</script>
}}}
---------------

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
----------
Was this answer useful? If so, please help support TiddlyTools:

   TiddlyTools direct contributions: (paypal)
      http://www.TiddlyTools.com/#Donate
   UnaMesa tax-deductible contributions:
      http://about.unamesa.org/Participate (paypal)
   TiddlyWiki consulting:
      http://www.TiddlyTools.com/#ELSDesignStudios
      http://www.TiddlyTools.com/#Contact

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to