Created
September 8, 2014 12:04
-
-
Save weiland/49053c514dbb9766ee96 to your computer and use it in GitHub Desktop.
Chayns confirm dialog box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function (module, Chayns, undefined) { | |
| 'use strict'; | |
| module.confirm = function (question, yesCallback, noCallback) { | |
| question = question || ''; | |
| yesCallback = yesCallback || Function.prototype; | |
| noCallback = noCallback || Function.prototype; | |
| var buttons = [ | |
| new Chayns.PopUpButton('Ja', yesCallback), | |
| new Chayns.PopUpButton('Nein', noCallback) | |
| ]; | |
| Chayns.ShowPopUp('<p>' + question + '</p>', "", buttons, Function.prototype); | |
| }; | |
| })(window.TappProject, Chayns); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment