In this post:
I find this script:
It's work perfectly, but i have queston... When is first edited we must to write reason for editing... but when we open it for second, or third time there is no option to must write reason for editing...
So i wonder how to fix this?
Thanks in Advance...
Regards & Respect!
- Code:
http://help.forumotion.com/t138033-how-to-force-users-to-fill-in-reason-for-editing?highlight=reason
I find this script:
- Code:
$(function() {
var rsmsg = '*You Must Enter A Reason To Send';
if($('input[name="edit_reason"]').val() == ""){
$('input[name="post"]').attr('disabled','disabled');
$('input[name="edit_reason"]').after(' <br><span id="edrmsg" style="color:red;font-weight:bolder;">'+rsmsg+'</span>');
}
else{
$('input[name="post"]').removeAttr('disabled');
$('#edrmsg').remove();
}
$('input[name="edit_reason"]').keyup(function(){
if($('input[name="edit_reason"]').val() == ""){
$('input[name="post"]').attr('disabled','disabled');
$('input[name="edit_reason"]').after(' <br><span id="edrmsg" style="color:red;font-weight:bolder;">'+rsmsg+'</span>');
}
else{
$('input[name="post"]').removeAttr('disabled');
$('#edrmsg').remove();
}
})
});
It's work perfectly, but i have queston... When is first edited we must to write reason for editing... but when we open it for second, or third time there is no option to must write reason for editing...
So i wonder how to fix this?
Thanks in Advance...
Regards & Respect!