Edit File by line
/home/barbar84/public_h.../wp-inclu.../js/swfuploa...
File: swfupload.js
/**
[0] Fix | Delete
* SWFUpload fallback
[1] Fix | Delete
*
[2] Fix | Delete
* @since 4.9.0
[3] Fix | Delete
*/
[4] Fix | Delete
[5] Fix | Delete
var SWFUpload;
[6] Fix | Delete
[7] Fix | Delete
( function () {
[8] Fix | Delete
function noop() {}
[9] Fix | Delete
[10] Fix | Delete
if (SWFUpload == undefined) {
[11] Fix | Delete
SWFUpload = function (settings) {
[12] Fix | Delete
this.initSWFUpload(settings);
[13] Fix | Delete
};
[14] Fix | Delete
}
[15] Fix | Delete
[16] Fix | Delete
SWFUpload.prototype.initSWFUpload = function ( settings ) {
[17] Fix | Delete
function fallback() {
[18] Fix | Delete
var $ = window.jQuery;
[19] Fix | Delete
var $placeholder = settings.button_placeholder_id ? $( '#' + settings.button_placeholder_id ) : $( settings.button_placeholder );
[20] Fix | Delete
[21] Fix | Delete
if ( ! $placeholder.length ) {
[22] Fix | Delete
return;
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
var $form = $placeholder.closest( 'form' );
[26] Fix | Delete
[27] Fix | Delete
if ( ! $form.length ) {
[28] Fix | Delete
$form = $( '<form enctype="multipart/form-data" method="post">' );
[29] Fix | Delete
$form.attr( 'action', settings.upload_url );
[30] Fix | Delete
$form.insertAfter( $placeholder ).append( $placeholder );
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
$placeholder.replaceWith(
[34] Fix | Delete
$( '<div>' )
[35] Fix | Delete
.append(
[36] Fix | Delete
$( '<input type="file" multiple />' ).attr({
[37] Fix | Delete
name: settings.file_post_name || 'async-upload',
[38] Fix | Delete
accepts: settings.file_types || '*.*'
[39] Fix | Delete
})
[40] Fix | Delete
).append(
[41] Fix | Delete
$( '<input type="submit" name="html-upload" class="button" value="Upload" />' )
[42] Fix | Delete
)
[43] Fix | Delete
);
[44] Fix | Delete
}
[45] Fix | Delete
[46] Fix | Delete
try {
[47] Fix | Delete
// Try the built-in fallback.
[48] Fix | Delete
if ( typeof settings.swfupload_load_failed_handler === 'function' && settings.custom_settings ) {
[49] Fix | Delete
[50] Fix | Delete
window.swfu = {
[51] Fix | Delete
customSettings: settings.custom_settings
[52] Fix | Delete
};
[53] Fix | Delete
[54] Fix | Delete
settings.swfupload_load_failed_handler();
[55] Fix | Delete
} else {
[56] Fix | Delete
fallback();
[57] Fix | Delete
}
[58] Fix | Delete
} catch ( ex ) {
[59] Fix | Delete
fallback();
[60] Fix | Delete
}
[61] Fix | Delete
};
[62] Fix | Delete
[63] Fix | Delete
SWFUpload.instances = {};
[64] Fix | Delete
SWFUpload.movieCount = 0;
[65] Fix | Delete
SWFUpload.version = "0";
[66] Fix | Delete
SWFUpload.QUEUE_ERROR = {};
[67] Fix | Delete
SWFUpload.UPLOAD_ERROR = {};
[68] Fix | Delete
SWFUpload.FILE_STATUS = {};
[69] Fix | Delete
SWFUpload.BUTTON_ACTION = {};
[70] Fix | Delete
SWFUpload.CURSOR = {};
[71] Fix | Delete
SWFUpload.WINDOW_MODE = {};
[72] Fix | Delete
[73] Fix | Delete
SWFUpload.completeURL = noop;
[74] Fix | Delete
SWFUpload.prototype.initSettings = noop;
[75] Fix | Delete
SWFUpload.prototype.loadFlash = noop;
[76] Fix | Delete
SWFUpload.prototype.getFlashHTML = noop;
[77] Fix | Delete
SWFUpload.prototype.getFlashVars = noop;
[78] Fix | Delete
SWFUpload.prototype.getMovieElement = noop;
[79] Fix | Delete
SWFUpload.prototype.buildParamString = noop;
[80] Fix | Delete
SWFUpload.prototype.destroy = noop;
[81] Fix | Delete
SWFUpload.prototype.displayDebugInfo = noop;
[82] Fix | Delete
SWFUpload.prototype.addSetting = noop;
[83] Fix | Delete
SWFUpload.prototype.getSetting = noop;
[84] Fix | Delete
SWFUpload.prototype.callFlash = noop;
[85] Fix | Delete
SWFUpload.prototype.selectFile = noop;
[86] Fix | Delete
SWFUpload.prototype.selectFiles = noop;
[87] Fix | Delete
SWFUpload.prototype.startUpload = noop;
[88] Fix | Delete
SWFUpload.prototype.cancelUpload = noop;
[89] Fix | Delete
SWFUpload.prototype.stopUpload = noop;
[90] Fix | Delete
SWFUpload.prototype.getStats = noop;
[91] Fix | Delete
SWFUpload.prototype.setStats = noop;
[92] Fix | Delete
SWFUpload.prototype.getFile = noop;
[93] Fix | Delete
SWFUpload.prototype.addFileParam = noop;
[94] Fix | Delete
SWFUpload.prototype.removeFileParam = noop;
[95] Fix | Delete
SWFUpload.prototype.setUploadURL = noop;
[96] Fix | Delete
SWFUpload.prototype.setPostParams = noop;
[97] Fix | Delete
SWFUpload.prototype.addPostParam = noop;
[98] Fix | Delete
SWFUpload.prototype.removePostParam = noop;
[99] Fix | Delete
SWFUpload.prototype.setFileTypes = noop;
[100] Fix | Delete
SWFUpload.prototype.setFileSizeLimit = noop;
[101] Fix | Delete
SWFUpload.prototype.setFileUploadLimit = noop;
[102] Fix | Delete
SWFUpload.prototype.setFileQueueLimit = noop;
[103] Fix | Delete
SWFUpload.prototype.setFilePostName = noop;
[104] Fix | Delete
SWFUpload.prototype.setUseQueryString = noop;
[105] Fix | Delete
SWFUpload.prototype.setRequeueOnError = noop;
[106] Fix | Delete
SWFUpload.prototype.setHTTPSuccess = noop;
[107] Fix | Delete
SWFUpload.prototype.setAssumeSuccessTimeout = noop;
[108] Fix | Delete
SWFUpload.prototype.setDebugEnabled = noop;
[109] Fix | Delete
SWFUpload.prototype.setButtonImageURL = noop;
[110] Fix | Delete
SWFUpload.prototype.setButtonDimensions = noop;
[111] Fix | Delete
SWFUpload.prototype.setButtonText = noop;
[112] Fix | Delete
SWFUpload.prototype.setButtonTextPadding = noop;
[113] Fix | Delete
SWFUpload.prototype.setButtonTextStyle = noop;
[114] Fix | Delete
SWFUpload.prototype.setButtonDisabled = noop;
[115] Fix | Delete
SWFUpload.prototype.setButtonAction = noop;
[116] Fix | Delete
SWFUpload.prototype.setButtonCursor = noop;
[117] Fix | Delete
SWFUpload.prototype.queueEvent = noop;
[118] Fix | Delete
SWFUpload.prototype.executeNextEvent = noop;
[119] Fix | Delete
SWFUpload.prototype.unescapeFilePostParams = noop;
[120] Fix | Delete
SWFUpload.prototype.testExternalInterface = noop;
[121] Fix | Delete
SWFUpload.prototype.flashReady = noop;
[122] Fix | Delete
SWFUpload.prototype.cleanUp = noop;
[123] Fix | Delete
SWFUpload.prototype.fileDialogStart = noop;
[124] Fix | Delete
SWFUpload.prototype.fileQueued = noop;
[125] Fix | Delete
SWFUpload.prototype.fileQueueError = noop;
[126] Fix | Delete
SWFUpload.prototype.fileDialogComplete = noop;
[127] Fix | Delete
SWFUpload.prototype.uploadStart = noop;
[128] Fix | Delete
SWFUpload.prototype.returnUploadStart = noop;
[129] Fix | Delete
SWFUpload.prototype.uploadProgress = noop;
[130] Fix | Delete
SWFUpload.prototype.uploadError = noop;
[131] Fix | Delete
SWFUpload.prototype.uploadSuccess = noop;
[132] Fix | Delete
SWFUpload.prototype.uploadComplete = noop;
[133] Fix | Delete
SWFUpload.prototype.debug = noop;
[134] Fix | Delete
SWFUpload.prototype.debugMessage = noop;
[135] Fix | Delete
SWFUpload.Console = {
[136] Fix | Delete
writeLine: noop
[137] Fix | Delete
};
[138] Fix | Delete
}() );
[139] Fix | Delete
[140] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function