mariusbutuc

MariusButuc

Feb 1st, 2010
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. document.observe("dom:loaded", function() {
  2.   $('suspend').observe('submit', function(event) {
  3.     var suspendFor = $F("suspendFor");
  4.     var myS = (suspendFor == 1) ? "" : "s";
  5.     var suspendMonths = suspendFor + " month" + myS;
  6.     var myBehavior = {
  7.       onYes: function() {
  8. @@         //
  9.       },
  10.       onNo: function() {
  11.         event.stop();
  12.       }
  13.     };
  14.     var myInteractionParameters = {
  15.       confirmationText: "Are you sure you want to exclude this account for "+ suspendMonths +" from GBB?",
  16.       yesButtonText: "Yes, please do that.",
  17.       noButtonText: "No, thank you."
  18.     };
  19.     new XWiki.widgets.ConfirmationBox(myBehavior, myInteractionParameters);
  20.     event.stop();
  21.   });
  22. });
Add Comment
Please, Sign In to add comment