Reason For Editing
2 posters
Page 1 of 1
Reason For Editing
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!
smejker- Forumember
- Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian
Re: Reason For Editing
yea first time i wrote that i made it check to see if the reason box was empty so i redone it and now it gets the text of the reason box and doesn't let you submit until the reason has been changed
- Code:
$(function() {
var rsmsg = '*You Must Enter A Reason To Send';
var oldmsg = input[name="edit_reason"]').val();
if($('input[name="edit_reason"]').val() == oldmsg){
$('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() == oldmsg){
$('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();
}
})
});
Re: Reason For Editing
Hmm, That is not what I looking for... Anyway Thanks _Twisted_Mods_
smejker- Forumember
- Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian
Re: Reason For Editing
BUUUUUUMMMMPPPPP!!!
smejker- Forumember
- Posts : 167
Reputation : 4
Language : serbo-croatian/english/macedonian/bulgarian
Similar topics
» Reason for editing
» Reason for editing box
» Reason for Editing - Background
» Mods Nagging on me for no reason
» Banned inactive user and entered reason; reason doesn't appear under Ban Control
» Reason for editing box
» Reason for Editing - Background
» Mods Nagging on me for no reason
» Banned inactive user and entered reason; reason doesn't appear under Ban Control
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum