[Frontend] Mods to OverlayService

open #159
open #170
OverlayService can now be passed typeClass,
which is added to the CSS class of the overlay's
mct-include tag - intent is to allow the overlay
to size itself based on the type of content to be
displayed;
This commit is contained in:
Charles Hacskaylo
2015-10-07 12:11:30 -07:00
parent ad4292f1e9
commit 7f529eec68
2 changed files with 11 additions and 4 deletions

View File

@ -89,7 +89,8 @@ define(
// will handle actual insertion into the DOM
this.overlay = this.overlayService.createOverlay(
key,
model
model,
"t-dialog"
);
// Track that a dialog is already visible, to
@ -230,6 +231,7 @@ define(
* progress, as well as a series of actions that
* the user can take if necessary
* @param {DialogModel} dialogModel defines options for the dialog
* @param {typeClass} string tells overlayService that this overlay should use appropriate CSS class
* @returns {boolean}
*/
DialogService.prototype.showBlockingMessage = function(dialogModel) {
@ -238,7 +240,8 @@ define(
// will handle actual insertion into the DOM
this.overlay = this.overlayService.createOverlay(
"blocking-message",
{dialog: dialogModel}
{dialog: dialogModel},
"t-dialog-sm"
);
this.dialogVisible = true;
return true;