Changeset 473 for trunk/js


Ignore:
Timestamp:
Mar 22, 2014 1:57:04 AM (10 years ago)
Author:
anonymous
Message:

Minor fixes to JS and CSS delivery mechanisms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/js/Msg.js

    r471 r473  
    6767    // If an "above msg" is provided, and one doesn't already exist, add it to the message box.
    6868    if (this.o.above_msg.length && !$(this.o.container).find('.sc-above').length) {
    69         $(this.o.container).append($('<div/>', {'class': 'sc-above sc-js-msg'}).text(this.o.above_msg));
     69        $(this.o.container).append($('<div class="sc-js-msg sc-above"></div>').text(this.o.above_msg));
    7070    }
    7171    // Use 'sc-msg-error' as default class string.
     
    7373    // Append this raised message to the sc-msg stack, if it doesn't exist already.
    7474    if (!$(this.o.container).find(':contains("' + message + '")').length) {
    75         $(this.o.container).append($('<div/>', {'class': msg_class + ' sc-js-msg'}).text(message)).show();
     75        $(this.o.container).append($('<div class="sc-js-msg ' + msg_class + '"></div>').text(message)).show();
    7676    }
    7777
Note: See TracChangeset for help on using the changeset viewer.