plugins/vendor/dialog.js
function(title, message, buttons){
        return new Dialog({templateUrl: 'plugins/ui-bootstrap/html/message.html', controller: 'MessageBoxController', resolve:
          {model: function() {
            return {
              title: title,
              message: message,
              buttons: buttons
            };
          }
        }});
      }
function(title, message, buttons){
        return new Dialog({templateUrl: 'plugins/ui-bootstrap/html/message.html', controller: 'MessageBoxController', resolve:
          {model: function() {
            return {
              title: title,
              message: message,
              buttons: buttons
            };
          }
        }});
      }
creates a new `Dialog` tied to the default message box template and controller.  Arguments `title` and `message` are rendered in the modal header and body sections respectively. The `buttons` array holds an object with the following members for each button to include in the modal footer section:  * `result`: the result to pass to the `close` method of the dialog when the button is clicked * `label`: the label of the button * `cssClass`: additional css class(es) to apply to the button for styling