Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.observe("dom:loaded", function() {
- $('suspend').observe('submit', function(event) {
- var suspendFor = $F("suspendFor");
- var myS = (suspendFor == 1) ? "" : "s";
- var suspendMonths = suspendFor + " month" + myS;
- var myBehavior = {
- onYes: function() {
- @@ //
- },
- onNo: function() {
- event.stop();
- }
- };
- var myInteractionParameters = {
- confirmationText: "Are you sure you want to exclude this account for "+ suspendMonths +" from GBB?",
- yesButtonText: "Yes, please do that.",
- noButtonText: "No, thank you."
- };
- new XWiki.widgets.ConfirmationBox(myBehavior, myInteractionParameters);
- event.stop();
- });
- });
Add Comment
Please, Sign In to add comment