|
|
@ -2,12 +2,13 @@
|
|
|
|
/* globals define, translator, templates */
|
|
|
|
/* globals define, translator, templates */
|
|
|
|
|
|
|
|
|
|
|
|
define('alerts', function() {
|
|
|
|
define('alerts', function() {
|
|
|
|
|
|
|
|
|
|
|
|
var module = {};
|
|
|
|
var module = {};
|
|
|
|
|
|
|
|
|
|
|
|
module.alert = function (params) {
|
|
|
|
module.alert = function (params) {
|
|
|
|
params.alert_id = 'alert_button_' + (params.alert_id ? params.alert_id : new Date().getTime());
|
|
|
|
params.alert_id = 'alert_button_' + (params.alert_id ? params.alert_id : new Date().getTime());
|
|
|
|
params.title = params.title || '';
|
|
|
|
params.title = params.title.trim() || '';
|
|
|
|
|
|
|
|
params.message = params.message.trim();
|
|
|
|
|
|
|
|
|
|
|
|
params.location = params.location || 'right-top';
|
|
|
|
params.location = params.location || 'right-top';
|
|
|
|
params.type = params.type || 'info';
|
|
|
|
params.type = params.type || 'info';
|
|
|
|
|
|
|
|
|
|
|
|