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

37 lines
829 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* Хранения 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);