Version 3.3.4
This commit is contained in:
1 parent
78706903a2
commit
fb6b5baabc
2206 files changed
+409828
-382984
No files matched your search
@@ -242,7 +242,8 @@ _attach.prototype.attach = {
|
||||
// #33731: Opera would constantly call this function, causing the attachment
|
||||
// list to break. As a workaround, we set this to true so that it only
|
||||
// runs once.
|
||||
ipb.attach._doneJson = true;
|
||||
// Sigh... this caused a regression.
|
||||
//ipb.attach._doneJson = true;
|
||||
|
||||
Debug.write( "ips.attach.js: Got json back from iframe id " + id );
|
||||
|
||||
@@ -404,7 +405,7 @@ _attach.prototype.attachTraditional = Class.create({
|
||||
// Update totals
|
||||
if( $('space_info_' + this.id ) && ipb.lang['used_space'] )
|
||||
{
|
||||
$('space_info_' + this.id ).update( ipb.lang['used_space'].gsub(/\[used\]/, fileinfo['attach_stats']['space_used_human']).gsub(/\[total\]/, fileinfo['attach_stats']['total_space_allowed_human']) );
|
||||
$('space_info_' + this.id ).update( ipb.lang['used_space'].gsub(/\[used\]/, fileinfo['attach_stats']['space_used_human']).gsub(/\[total\]/, fileinfo['attach_stats']['total_space_allowed_human']).gsub(/\[left\]/, fileinfo['attach_stats']['space_left_human']) );
|
||||
}
|
||||
|
||||
Debug.write( "ips.attach.js: (ID " + this.id + ", removeUpload) Attach ID: " + attachid + ", File index: " + fileindex );
|
||||
@@ -455,7 +456,7 @@ _attach.prototype.attachTraditional = Class.create({
|
||||
{
|
||||
if( $('space_info_attach_' + this.json['attach_rel_id'] ) )
|
||||
{
|
||||
$('space_info_attach_' + this.json['attach_rel_id'] ).update( ipb.lang['used_space'].gsub(/\[used\]/, this.json['attach_stats']['space_used_human']).gsub(/\[total\]/, this.json['attach_stats']['total_space_allowed_human']) );
|
||||
$('space_info_attach_' + this.json['attach_rel_id'] ).update( ipb.lang['used_space'].gsub(/\[used\]/, this.json['attach_stats']['space_used_human']).gsub(/\[total\]/, this.json['attach_stats']['total_space_allowed_human']).gsub(/\[left\]/, this.json['attach_stats']['space_left_human']) );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -604,7 +605,7 @@ _attach.prototype.attachSWF = Class.create({
|
||||
|
||||
if( $('space_info_' + this.id ) && ipb.lang['used_space'] )
|
||||
{
|
||||
$('space_info_' + this.id ).update( ipb.lang['used_space'].gsub(/\[used\]/, fileinfo['attach_stats']['space_used_human']).gsub(/\[total\]/, fileinfo['attach_stats']['total_space_allowed_human']) );
|
||||
$('space_info_' + this.id ).update( ipb.lang['used_space'].gsub(/\[used\]/, fileinfo['attach_stats']['space_used_human']).gsub(/\[total\]/, fileinfo['attach_stats']['total_space_allowed_human']).gsub(/\[left\]/, fileinfo['attach_stats']['space_left_human']) );
|
||||
}
|
||||
|
||||
Debug.write( "ips.attach.js: (ID " + this.id + ", removeUpload) Attach ID: " + attachid + ", File index: " + fileindex );
|
||||
@@ -721,7 +722,7 @@ _attach.prototype.attachSWF = Class.create({
|
||||
|
||||
try {
|
||||
if( errorCode === SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED ){
|
||||
alert( ipb.lang['upload_queue'] + message );
|
||||
alert( ipb.lang['upload_queue'] + ' ' + message );
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -857,7 +858,7 @@ _attach.prototype.attachSWF = Class.create({
|
||||
if( $('space_info_' + this.id ) && ipb.lang['used_space'] )
|
||||
{
|
||||
//$('space_info_' + this.id ).update( "Used <strong>" + returnedObj.attach_stats.space_used_human + "</strong> of <strong>" + returnedObj.attach_stats.total_space_allowed_human + "</strong>" );
|
||||
$('space_info_' + this.id ).update( ipb.lang['used_space'].gsub(/\[used\]/, returnedObj.attach_stats.space_used_human).gsub(/\[total\]/, returnedObj.attach_stats.total_space_allowed_human) );
|
||||
$('space_info_' + this.id ).update( ipb.lang['used_space'].gsub(/\[used\]/, returnedObj.attach_stats.space_used_human).gsub(/\[total\]/, returnedObj.attach_stats.total_space_allowed_human).gsub(/\[left\]/, returnedObj.attach_stats.space_left_human) );
|
||||
}
|
||||
|
||||
// IMAGE RESIZING
|
||||
|
||||
Reference in new issue
Block a user