Merge branch 'bug/send-comment-button' into 'develop'
Bug/send comment button See merge request framasoft/framadate!307
This commit is contained in:
commit
17c264721e
@ -199,15 +199,14 @@ function checkCommentSending() {
|
||||
|
||||
// on page load, "textSend" is not set
|
||||
if ("undefined" === typeof button.data("textSend")) {
|
||||
button.data("textSend", button.val());
|
||||
button.data("textSend", button.text());
|
||||
}
|
||||
|
||||
|
||||
if (!form.get(0).checkValidity()) {
|
||||
button.prop("disabled", true);
|
||||
button.val(button.data("textWait"));
|
||||
button.text(button.data("textWait"));
|
||||
} else {
|
||||
button.prop("disabled", false);
|
||||
button.val(button.data("textSend"));
|
||||
button.text(button.data("textSend"));
|
||||
}
|
||||
}
|
||||
|
@ -26,10 +26,11 @@
|
||||
<button
|
||||
type="submit"
|
||||
id="add_comment"
|
||||
value="{__('Comments', 'Send the comment')|html}"
|
||||
class="btn btn-success"
|
||||
data-text-wait="{__('Comments', 'Type your name and a comment to send it')|html}"
|
||||
>
|
||||
{__('Comments', 'Send the comment')|html}
|
||||
</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user