Changeset 500 for trunk/js


Ignore:
Timestamp:
Nov 15, 2014 9:34:39 PM (9 years ago)
Author:
anonymous
Message:

Many auth and crypto changes; various other bugfixes while working on pulso.

Location:
trunk/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/js/Msg.js

    r497 r500  
    4848    // Merge options with defaults
    4949    this.o = $.extend({
    50         container: '#sc-msg',
     50        container: '#sc-msg:last',
    5151        above_msg: '',
    5252        gotohash: true
     
    7474    if (!$(this.o.container).find(':contains("' + message + '")').length) {
    7575        $(this.o.container).append($('<div class="sc-js-msg ' + msg_class + '"></div>').text(message)).show();
     76        // $(this.o.container).append($('<div data-alert class="alert-box sc-js-msg ' + msg_class + '"></div>').hide().text(message).append('<a href="#" class="close">×</a>'));
     77        // $('.sc-js-msg').slideDown('fast');
    7678    }
    7779
  • trunk/js/Utilities.js

    r497 r500  
    4141        var args = arguments;
    4242        return this.replace(/{(\d+)}/g, function(match, number) {
    43             return typeof args[number] != 'undefined' ? args[number] : match;
     43            return typeof args[number-1] != 'undefined' ? args[number-1] : match;
    4444        });
    4545    };
Note: See TracChangeset for help on using the changeset viewer.