static/js-parsons/ui-extension/parsons-site-ui.js
function(title, message, callback, options) {
    var buttons = {};
    buttons[options?(options.buttonTitle || "OK"):"OK"] = function() {
      $(this).dialog( "close" );
    };
    var opts = $.extend(true,
                        { buttons: buttons,
                          modal: true,
                          title: title,
                          draggable: false,
                          close: function() {
                            // if there is a callback, call it
                            if ($.isFunction(callback)) {
                              callback();
                            }
                            return true;
                          }
                        },
                        options);
    $("#feedbackDialog") // find the dialog element
          .find("p") // find the p element inside
              .text(message) // set the feedback text
          .end() // go back to the #feedbackDialog element
          .dialog(opts);
  }
function(title, message, callback, options) {
    var buttons = {};
    buttons[options?(options.buttonTitle || "OK"):"OK"] = function() {
      $(this).dialog( "close" );
    };
    var opts = $.extend(true,
                        { buttons: buttons,
                          modal: true,
                          title: title,
                          draggable: false,
                          close: function() {
                            // if there is a callback, call it
                            if ($.isFunction(callback)) {
                              callback();
                            }
                            return true;
                          }
                        },
                        options);
    $("#feedbackDialog") // find the dialog element
          .find("p") // find the p element inside
              .text(message) // set the feedback text
          .end() // go back to the #feedbackDialog element
          .dialog(opts);
  }
function ( title , message , callback , options ) { var buttons = { } ; buttons [ options ? ( options . buttonTitle || "OK" ) : "OK" ] = function ( ) { $ ( this ) . dialog ( "close" ) ; } ; var opts = $ . extend ( true , { buttons : buttons , modal : true , title : title , draggable : false , close : function ( ) { // if there is a callback, call it if ( $ . isFunction ( callback ) ) { callback ( ) ; } return true ; } } , options ) ; $ ( "#feedbackDialog" ) // find the dialog element . find ( "p" ) // find the p element inside . text ( message ) // set the feedback text . end ( ) // go back to the #feedbackDialog element . dialog ( opts ) ; }
function used to show a UI message dialog
function used to show a UI message dialog