Problems with "undo" (button) for user actions.
Posted: Tue Jun 30, 2015 9:45 am
I've been trying to make an "undo" button for some time now and only have it partially working.
I have it so that a user can clone a button (or multiple buttons) and click the "undo" button if they want to delete the last cloned button. It does delete each button in sequence of when it was created except that it CONTINUES to delete buttons that should not be deleted such as the "main page" button that returns users to the main page.
How do I make it so that it only deletes user-created buttons?
I have it so that a user can clone a button (or multiple buttons) and click the "undo" button if they want to delete the last cloned button. It does delete each button in sequence of when it was created except that it CONTINUES to delete buttons that should not be deleted such as the "main page" button that returns users to the main page.
How do I make it so that it only deletes user-created buttons?