angular-unsavedChanges icon indicating copy to clipboard operation
angular-unsavedChanges copied to clipboard

Replacement for confirm

Open IgalOre opened this issue 10 years ago • 4 comments

Hello, i had discovered angular-unsavedChanges project throw Googling, and so far everything looking good and promising. So far i got 2 questions:

  1. Is there any specific reason why this project not published on NPMJS ? (except of capital letter in name) ?

  2. If you would be required to replace windows.confirm with alternative dialog pop-up as one from angular UI-Bootstrap modal pop-up http://angular-ui.github.io/bootstrap/#/modal , how would you do so ?

Thank you in advance ...

IgalOre avatar Jul 09 '15 11:07 IgalOre

as for your second question, I had to fork it in order to customize dialog behavior. custom modals are non blocking unlike confirm, so it is not a trivial thing. if it helps here is my commit history on my fork: https://github.com/cstephe/angular-unsavedChanges/commits/cniUpdates

cstephe avatar Jul 09 '15 16:07 cstephe

It does helps, thank you Chris; it would spare few code tinkering ...

IgalOre avatar Jul 10 '15 06:07 IgalOre

cstephe, I see you have made changes to your repo but have you uploaded a full demo showing the custom dialog functionality???

menelaosbgr avatar Nov 02 '15 15:11 menelaosbgr

@menelaosbgr nope I'm not PRing it, If you want to go ahead, but it needs work to be an universal solution.

cstephe avatar Dec 02 '15 18:12 cstephe