1(function ($, APP, undefined) { 2 "use strict"; 3 4 /** 5 * ÐонÑÑÐ¾Ð»Ð»ÐµÑ ÑоÑÐ¼Ñ Ð¿Ð¾Ð´Ð¿Ð¸Ñки 6 **/ 7 APP.Controls.FormSubscribe = APP.Controls.Form.extend( 8 { 9 defaults: { 10 popover: null 11 } 12 }, 13 { 14 init: function() { 15 this._super(); 16 this.$resultMessage = this.element.find('.js-result-message'); 17 }, 18 19 submitResult: function(data) { 20 this.$ajaxLoader.hide(); 21 22 this.closeFancyTimeout = 5000; 23 24 if (data.result) { 25 this.$resultMessage.html(data.message); 26 this.element.addClass('submit-complete'); 27 this.element.find('input[type!="submit"], input[type!="hidden"], textarea').val(''); 28 } else { 29 this.$resultMessage.html(data.message); 30 this.element.addClass('submit-complete'); 31 } 32 33 APP.fancyTimeOut = setTimeout(this.proxy(function() { 34 35 if (this.options.popover != null && data.result) { 36 this.options.popover.removeClass('active'); 37 } 38 this.element.removeClass('submit-complete'); 39 this.element.find('input[type="text"], textarea').first().focus(); 40 }), this.closeFancyTimeout); 41 } 42 43 } 44 ); 45 46})(jQuery, window.APP);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.