Version 3.1.4

This commit is contained in:
Neo committed 2025-12-19 00:32:22 -08:00
1 parent 1d4720f3e2
commit ae5c01cc78
2563 files changed
+283048 -240689

No files matched your search

+5 -5
View File
@@ -32,7 +32,7 @@ _attach.prototype.attach = {
* @param {object} options Options to pass to object
*/
registerUploader: function( id, type, wrapper, options )
{
{
//if( !ipb.vars['use_swfupload'] ){ return false; }
if( Object.isUndefined( id ) || id == null )
@@ -286,14 +286,14 @@ _attach.prototype.attach = {
if( fileindex && filename )
{
ipb.editorInsert( "[attachment=" + fileindex + ":" + filename + "]", 'ed-0' );
ipb.editorInsert( "[attachment=" + fileindex + ":" + filename.replace( /\[/, '' ).replace( /\]/, '' ) + "]", 'ed-0' );
}
else if( fileindex )
{
ipb.editorInsert( "[attachment=" + fileindex + "]", 'ed-0' );
}
}
}
};
ipb.attach.init();
//==============================================================
@@ -482,7 +482,7 @@ _attach.prototype.attachSWF = Class.create({
file_queue_error_handler: this._fileQueueError.bind(this),
queue_complete_handler: this._queueComplete.bind(this),
file_queued_handler: this._fileQueued.bind(this)
}
};
swfu = new SWFUpload( settings );
@@ -880,7 +880,7 @@ _attach.prototype.attachSWF = Class.create({
progress_bar.setStyle( "width: " + percent + "%" ).update( percent + "%" );
this._setStatus( file.index, 'in_progress' );
this._updateInfo( file.index, ipb.lang['upload_progress'].gsub( /\[done\]/, ipb.global.convertSize( bytesLoaded ) ).gsub( /\[total\]/, ipb.global.convertSize( bytesTotal ) ) )
this._updateInfo( file.index, ipb.lang['upload_progress'].gsub( /\[done\]/, ipb.global.convertSize( bytesLoaded ) ).gsub( /\[total\]/, ipb.global.convertSize( bytesTotal ) ) );
Debug.write( "ips.attach.js: (ID " + this.id + ", uploadProgress)" );
},