PHP Classes

File: Application/Theme/Frontend/Default/Js/flash.js

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Application/Theme/Frontend/Default/Js/flash.js   Download  
File: Application/Theme/Frontend/Default/Js/flash.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Lego PHP
Blog and shopping cart system
Author: By
Last change: Update JS & CSS for minifying
Date: 7 years ago
Size: 682 bytes
 

Contents

Class file image Download
FLASH = { init: function () { $('.content-flash .messages .login-box-msg').each(function (i, e) { var id = '#' + $(e).attr('rel'); var html = $(e).html(); if ($(e).hasClass('flash-error') && $(id).length > 0) { $(id).parent().addClass('has-error'); $(id).parent().append('<label>' + html + '</label>'); $(e).remove(); } }); if ($('.content-flash .messages .login-box-msg').length > 0) { $('.content-flash').show(); } else { $('.content-flash').remove(); } } }; $(document).ready(function () { FLASH.init(); });