Changeset 473


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

Minor fixes to JS and CSS delivery mechanisms

Location:
trunk
Files:
1 added
4 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
  • trunk/lib/CSS.inc.php

    r471 r473  
    159159    public function output($realm='')
    160160    {
     161        $app =& App::getInstance();
     162
    161163        $realm = '' == $realm ? 'default' : $realm;
    162164
  • trunk/lib/JS.inc.php

    r471 r473  
    159159    public function output($realm='')
    160160    {
     161        $app =& App::getInstance();
     162
    161163        $realm = '' == $realm ? 'default' : $realm;
    162164
  • trunk/lib/PageSequence.inc.php

    r468 r473  
    44 * For details visit the project site: <http://trac.strangecode.com/codebase/>
    55 * Copyright 2001-2012 Strangecode, LLC
    6  * 
     6 *
    77 * This file is part of The Strangecode Codebase.
    88 *
     
    1111 * Free Software Foundation, either version 3 of the License, or (at your option)
    1212 * any later version.
    13  * 
     13 *
    1414 * The Strangecode Codebase is distributed in the hope that it will be useful, but
    1515 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1616 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
    1717 * details.
    18  * 
     18 *
    1919 * You should have received a copy of the GNU General Public License along with
    2020 * The Strangecode Codebase. If not, see <http://www.gnu.org/licenses/>.
Note: See TracChangeset for help on using the changeset viewer.