##// END OF EJS Templates
remove uselessrandom id, and move styling to css
Matthias BUSSONNIER -
Show More
@@ -32,13 +32,10 b' define(['
32 };
32 };
33
33
34 NotificationArea.prototype.temp_message = function (msg, timeout, css_class) {
34 NotificationArea.prototype.temp_message = function (msg, timeout, css_class) {
35 var uuid = utils.uuid();
36 if( css_class == 'danger') {css_class = 'ui-state-error';}
35 if( css_class == 'danger') {css_class = 'ui-state-error';}
37 if( css_class == 'warning') {css_class = 'ui-state-highlight';}
36 if( css_class == 'warning') {css_class = 'ui-state-highlight';}
38 var tdiv = $('<div>')
37 var tdiv = $('<div>')
39 .attr('id',uuid)
40 .addClass('notification_widget ui-widget ui-widget-content ui-corner-all')
38 .addClass('notification_widget ui-widget ui-widget-content ui-corner-all')
41 .addClass('border-box-sizing')
42 .addClass(css_class)
39 .addClass(css_class)
43 .hide()
40 .hide()
44 .text(msg);
41 .text(msg);
General Comments 0
You need to be logged in to leave comments. Login now