Correction from above deleteCompleted & deleteAllTagged are deleting the first item in the array, and if I empty the trash it will delete the first item of the new array.
I am not sure why it is not deleting the entire array. . . Any suggestions? I will play with it some more tomorrow. Mike On May 13, 5:06 pm, Mike <[email protected]> wrote: > Ok . . . > So I got rid of the Syntax error, but the array to delete is still > acting crazy :( > (Updated)http://www.strm.us/Private/IJSTaskManager.htm > > deleteAllTagged is deleting the first item of the array, and > deleteCompleted is deleting the button . . . > > I also tried removing the else syntax and going with just the > TrashPlugin, with the same results. > > If I disable the TrashPlugin, everything works like before > > Thx, > > Mike > > On May 13, 12:13 pm, Mike <[email protected]> wrote: > > > I seem to have made a mess of a simple fix. . > > .http://www.strm.us/Private/IJSTaskManager.htm > > > I originally tried to just change the minimum amount, which didn't > > seem to act as desired, (not sending the entire array to trash) so I > > copied the code from below the statement I was changing to give If and > > Else the same end result . . . (Display message, refresh ect.) > > > now I have a syntax error - I can't seem to track it down, possibly > > the way it is nested? > > > If anyone has time to poke around, I would appreciate it - otherwise I > > will continue to experiment. > > > Thanks, > > > Mike > > > On May 12, 4:39 pm, Mike <[email protected]> wrote: > > > > Awesome - I appreciate your continued assistance, > > > > Thx, > > > > Mike > > > > On May 12, 2:12 pm, Eric Shulman <[email protected]> wrote: > > > > > > I have (2) plugin variants I am > > > > > using:http://www.strm.us/Private/IJS%20TaskManager.htm#deleteAllTaggedPlugi... > > > > > > 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 -~----------~----~----~----~------~----~------~--~---
