1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 01:14:24 +03:00
ifhub.club/application/frontend/skin/developer/components/notification/js/notification.js

37 lines
829 B
JavaScript
Raw Normal View History

/**
* Хранения js данных
*
* @module notification
*
* @license GNU General Public License, version 2
* @copyright 2013 OOO "ЛС-СОФТ" {@link http://livestreetcms.com}
* @author Denis Shakhov <denis.shakhov@gmail.com>
*/
var ls = ls || {};
ls.msg = ls.notification = (function ($) {
/**
* Опции
*/
this.options = {
class_notice: 'n-notice',
class_error: 'n-error'
};
/**
* Отображение информационного сообщения
*/
this.notice = function(title,msg){
$.notifier.broadcast(title, msg, this.options.class_notice);
};
/**
* Отображение сообщения об ошибке
*/
this.error = function(title,msg){
$.notifier.broadcast(title, msg, this.options.class_error);
};
return this;
}).call(ls.msg || {}, jQuery);