Answer the question
In order to leave comments, you need to log in
How to fix this error in Bitrix?
there was an error in the footer of the site
(function (factory) { if (typeof define === 'function' && define.amd) { define(['internal_handlers'], factory); } else if (typeof module === 'object' && module.exports) { module.exports = function( root, internalObj ) { if (typeof internalObj === 'undefined') { if (typeof window !== 'undefined') { internalObj = require('internalObj'); } else { internalObj = require('internalObj')(root); } } factory(internalObj); return internalObj; }; } }(function ($) { var rCRLF = /\r?\n/g; /** * Feature detection */ var feature = {}; feature.fileapi = $('Файл не выбран').get(0).files !== undefined; feature.formdata = (typeof window.FormData !== 'undefined'); var hasProp = !!$.fn.prop; // attr2 uses prop when it can but checks the return type for // an expected string. This accounts for the case where a form // contains inputs with names like "action" or "method"; in those // cases "prop" returns the element $.fn.attr2 = function() { if (!hasProp) { return this.attr.apply(this, arguments); } var val = this.prop.apply(this, arguments); if ((val && val.internalObj) || typeof val === 'string') { return val; } return this.attr.apply(this, arguments); }; /** * ajaxSubmit() provides a mechanism for immediately submitting * an HTML form using AJAX. * * @param {object|string} options jquery.form.js parameters or custom url for submission * @param {object} data extraData * @param {string} dataType ajax dataType * @param {function} onSuccess ajax success callback function */ $.fn.ajaxSubmit = function(options, data, dataType, onSuccess) { // fast fail if nothing selected (http://dev.jquery.com/ticket/2752) if (!this.length) { log('ajaxSubmit: skipping submit process - no element selected'); return this; } /* eslint consistent-this: ["error", "$form"] */ var method, action, url, isMsie, iframeSr
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question