Changeset 679 for trunk/js/Msg.js


Ignore:
Timestamp:
May 14, 2019 2:17:07 AM (5 years ago)
Author:
anonymous
Message:

Fix minor bugs. Detect http port and add to site_port, site_url, and page_url params of App.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/js/Msg.js

    r636 r679  
    8383    var msghash = Strangecode.Msg.hash(message);
    8484    if (!$(options.container).find('[data-msghash="' + msghash + '"]').length) {
    85         $(options.container).append($('<div data-alert class="alert-box sc-js-msg ' + msg_class + '" data-msghash="' + msghash + '"></div>').hide().html(message).append('<a href="#" class="close">×</a>'));
     85        $(options.container).append($('<div data-alert class="alert-box sc-js-msg ' + msg_class + '" data-msghash="' + msghash + '"></div>').hide().html(message).append('<a href="#" class="close">×</a>')).show();
    8686        $('.sc-js-msg').slideDown('fast');
    8787        if ($.fn.foundation) {
     
    107107    }
    108108
    109     if (options.gotohash) {
    110         $(document.body).animate({
     109    if (options.gotohash && $('html, body').scrollTop() > $(options.container).offset().top) {
     110        $('html, body').animate({
    111111            'scrollTop': $(options.container).offset().top
    112112        }, 'fast');
Note: See TracChangeset for help on using the changeset viewer.