Browse Source

! Be sure that when use a quick moderation button the other options are removed from the form's action - related to [Bug 0922]

emanuele 13 years ago
parent
commit
6901a45523
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Themes/default/scripts/topic.js

+ 3 - 0
Themes/default/scripts/topic.js

@@ -523,6 +523,7 @@ InTopicModeration.prototype.handleSubmit = function (sSubmitType)
 			if (!confirm(this.opt.sRemoveButtonConfirm))
 				return false;
 
+			oForm.action = oForm.action.replace(/;split_selection=1/, '');
 			oForm.action = oForm.action.replace(/;restore_selected=1/, '');
 		break;
 
@@ -530,6 +531,7 @@ InTopicModeration.prototype.handleSubmit = function (sSubmitType)
 			if (!confirm(this.opt.sRestoreButtonConfirm))
 				return false;
 
+			oForm.action = oForm.action.replace(/;split_selection=1/, '');
 			oForm.action = oForm.action + ';restore_selected=1';
 		break;
 
@@ -537,6 +539,7 @@ InTopicModeration.prototype.handleSubmit = function (sSubmitType)
 			if (!confirm(this.opt.sRestoreButtonConfirm))
 				return false;
 
+			oForm.action = oForm.action.replace(/;restore_selected=1/, '');
 			oForm.action = oForm.action + ';split_selection=1';
 		break;