summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/note.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/note.js')
-rw-r--r--app/assets/javascripts/note.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/note.js b/app/assets/javascripts/note.js
index 9cd3e36e87b..79ab086bfa2 100644
--- a/app/assets/javascripts/note.js
+++ b/app/assets/javascripts/note.js
@@ -25,14 +25,14 @@ var NoteList = {
$(this).closest('li').fadeOut(); });
$(".note-form-holder").live("ajax:before", function(){
- $(".submit_note").attr("disabled", "disabled");
+ $(".submit_note").disable()
})
$(".note-form-holder").live("ajax:complete", function(){
- $(".submit_note").removeAttr("disabled");
+ $(".submit_note").enable()
})
- disableButtonIfEmtpyField(".note-text", ".submit_note");
+ disableButtonIfEmptyField(".note-text", ".submit_note");
$(".note-text").live("focus", function(){
$(this).css("height", "80px");
@@ -177,6 +177,6 @@ var PerLineNotes = {
form.show();
return false;
});
- disableButtonIfEmtpyField(".line-note-text", ".submit_inline_note");
+ disableButtonIfEmptyField(".line-note-text", ".submit_inline_note");
}
}