Help - Search - Members - Calendar
Full Version: bookmarklet bug (and the fix)
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
btrott
Thanks, will change.
placain
As shipped, MT2.0 has a problem with bookmarklets. If you open a new entry for posting via bookmarklet, do some work in it, then open another one, the second one will open in the same window as the first (i.e., you'll lose the first one).

Fix: in tmpl/cms/bookmarklets/tmpl change MTpost to _blank

So, the new bookmarklet should look something like:
CODE
javascript:t=document.selection?document.selection.createRange().text:document.getSelection();void(window.open('http://yourhost/pathtoMT/mt.cgi?is_bm=1&bm_show=category&__mode=view&_type=entry&link_title='+escape(document.title)+'&link_href='+escape(window.location.href)+'&text='+escape(t),'_blank','scrollbars=no,width=400,height=490,status=yes,resizable=yes,scrollbars=yes'))


This should prevent this sort of heartache from happening again.

Daniel Drucker
dmd@3e.org
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.