> I have (2) plugin variants I am > using:http://www.strm.us/Private/IJS%20TaskManager.htm#deleteAllTaggedPluginhttp://www.strm.us/Private/IJS%20TaskManager.htm#DeleteCompletedPlugin > > I would like to make the above compatible with TrashPlugin, so if a > user has the plugin, the items will go to trash instead of being > directly deleted. > > I am using TrashPlugin v1.1.0TT.4 (ELS variant) > > Any suggestions?
I've just refactored the TrashPlugin code to provide a suitable API: config.commands.deleteTiddler.sendToTrash(title) For your purposes, you'll also want to check to make sure the function exists before calling it, thus: -------------------------- if (config.commands.deleteTiddler.sendToTrash) config.commands.deleteTiddler.sendToTrash(title); else store.deleteTiddler(title); -------------------------- Get the update (v1.1.0TT.5) here: http://www.TiddlyTools.com/#TrashPlugin enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" 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/TiddlyWikiDev?hl=en -~----------~----~----~----~------~----~------~--~---
