Файл: templates/backend/default/assets/plugins/jquery-notifications/js/demo/theme-sel.min.js
Строк: 47
<?php
!function(){var l,e={}.hasOwnProperty,t=function(l,t){function n(){this.constructor=l}for(var i in t)e.call(t,i)&&(l[i]=t[i]);return n.prototype=t.prototype,l.prototype=new n,l.__super__=t.prototype,l};l=function(l){function e(){return e.__super__.constructor.apply(this,arguments)}return t(e,l),e.prototype.tagName="ul",e.prototype.className="theme-selector",e.prototype.events={"click li":"handleClick"},e.prototype.render=function(){var l,e,t,n,i,o;for(this.$el.html(""),i=this.options.themes,o=[],t=0,n=i.length;n>t;t++)e=i[t],l=$("<li>"),l.attr("data-id",e),l.text(e),o.push(this.$el.append(l));return o},e.prototype.handleClick=function(l){var e;return e=$(l.target),this.trigger("update",e.attr("data-id"))},e}(Backbone.View),$.fn.themeSelector=function(e){var t;return t=new l($.extend({},e,{el:this})),$(this).addClass(t.className),t.render(),t}}.call(this);
?>