Edit File by line
/home/barbar84/public_h.../wp-inclu.../js/swfuploa...
File: handlers.js
var topWin = window.dialogArguments || opener || parent || top;
[0] Fix | Delete
[1] Fix | Delete
function fileDialogStart() {}
[2] Fix | Delete
function fileQueued() {}
[3] Fix | Delete
function uploadStart() {}
[4] Fix | Delete
function uploadProgress() {}
[5] Fix | Delete
function prepareMediaItem() {}
[6] Fix | Delete
function prepareMediaItemInit() {}
[7] Fix | Delete
function itemAjaxError() {}
[8] Fix | Delete
function deleteSuccess() {}
[9] Fix | Delete
function deleteError() {}
[10] Fix | Delete
function updateMediaForm() {}
[11] Fix | Delete
function uploadSuccess() {}
[12] Fix | Delete
function uploadComplete() {}
[13] Fix | Delete
function wpQueueError() {}
[14] Fix | Delete
function wpFileError() {}
[15] Fix | Delete
function fileQueueError() {}
[16] Fix | Delete
function fileDialogComplete() {}
[17] Fix | Delete
function uploadError() {}
[18] Fix | Delete
function cancelUpload() {}
[19] Fix | Delete
[20] Fix | Delete
function switchUploader() {
[21] Fix | Delete
jQuery( '#' + swfu.customSettings.swfupload_element_id ).hide();
[22] Fix | Delete
jQuery( '#' + swfu.customSettings.degraded_element_id ).show();
[23] Fix | Delete
jQuery( '.upload-html-bypass' ).hide();
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
function swfuploadPreLoad() {
[27] Fix | Delete
switchUploader();
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
function swfuploadLoadFailed() {
[31] Fix | Delete
switchUploader();
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
jQuery(document).ready(function($){
[35] Fix | Delete
$( 'input[type="radio"]', '#media-items' ).on( 'click', function(){
[36] Fix | Delete
var tr = $(this).closest('tr');
[37] Fix | Delete
[38] Fix | Delete
if ( $(tr).hasClass('align') )
[39] Fix | Delete
setUserSetting('align', $(this).val());
[40] Fix | Delete
else if ( $(tr).hasClass('image-size') )
[41] Fix | Delete
setUserSetting('imgsize', $(this).val());
[42] Fix | Delete
});
[43] Fix | Delete
[44] Fix | Delete
$( 'button.button', '#media-items' ).on( 'click', function(){
[45] Fix | Delete
var c = this.className || '';
[46] Fix | Delete
c = c.match(/url([^ '"]+)/);
[47] Fix | Delete
if ( c && c[1] ) {
[48] Fix | Delete
setUserSetting('urlbutton', c[1]);
[49] Fix | Delete
$(this).siblings('.urlfield').val( $(this).attr('title') );
[50] Fix | Delete
}
[51] Fix | Delete
});
[52] Fix | Delete
});
[53] Fix | Delete
[54] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function