mirror of
https://github.com/nasa/openmct.git
synced 2025-05-09 12:03:21 +00:00
Fixed jslint complaints
This commit is contained in:
parent
86bf6c6dff
commit
58198636ed
@ -223,7 +223,7 @@ define(
|
|||||||
* functions to dismiss or minimize
|
* functions to dismiss or minimize
|
||||||
*/
|
*/
|
||||||
NotificationService.prototype.info = function (message) {
|
NotificationService.prototype.info = function (message) {
|
||||||
var notificationModel = typeof message === "string" ? {title: message} : message
|
var notificationModel = typeof message === "string" ? {title: message} : message;
|
||||||
notificationModel.autoDismiss = notificationModel.autoDismiss || true;
|
notificationModel.autoDismiss = notificationModel.autoDismiss || true;
|
||||||
notificationModel.severity = "info";
|
notificationModel.severity = "info";
|
||||||
return this.notify(notificationModel);
|
return this.notify(notificationModel);
|
||||||
@ -240,7 +240,7 @@ define(
|
|||||||
* functions to dismiss or minimize
|
* functions to dismiss or minimize
|
||||||
*/
|
*/
|
||||||
NotificationService.prototype.alert = function (message) {
|
NotificationService.prototype.alert = function (message) {
|
||||||
var notificationModel = typeof message === "string" ? {title: message} : message
|
var notificationModel = typeof message === "string" ? {title: message} : message;
|
||||||
notificationModel.severity = "alert";
|
notificationModel.severity = "alert";
|
||||||
return this.notify(notificationModel);
|
return this.notify(notificationModel);
|
||||||
};
|
};
|
||||||
@ -256,7 +256,7 @@ define(
|
|||||||
* functions to dismiss or minimize
|
* functions to dismiss or minimize
|
||||||
*/
|
*/
|
||||||
NotificationService.prototype.error = function (message) {
|
NotificationService.prototype.error = function (message) {
|
||||||
var notificationModel = typeof message === "string" ? {title: message} : message
|
var notificationModel = typeof message === "string" ? {title: message} : message;
|
||||||
notificationModel.severity = "error";
|
notificationModel.severity = "error";
|
||||||
return this.notify(notificationModel);
|
return this.notify(notificationModel);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user