V
V
Vlad M2020-10-17 00:14:38
1C-Bitrix
Vlad M, 2020-10-17 00:14:38

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

5f8a0c9e078fb732190074.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2020-10-17
@Vlad__M

This is not an error, but the output of the php code.
Most likely someone crookedly commented on the lines;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question