Commit 1c0153682927f72f6b3011db11ddf5a139f9d16a
1 parent
ebd2a5d0
Exists in
master
and in
4 other branches
Fix spelling of "empty" in disableButtonIfEmptyField function name
Showing
5 changed files
with
7 additions
and
7 deletions
Show diff stats
app/assets/javascripts/issues.js
... | ... | @@ -5,7 +5,7 @@ function switchToNewIssue(form){ |
5 | 5 | $('select#issue_milestone_id').chosen(); |
6 | 6 | $("#new_issue_dialog").show("fade", { direction: "right" }, 150); |
7 | 7 | $('.top-tabs .add_new').hide(); |
8 | - disableButtonIfEmtpyField("#issue_title", ".save-btn"); | |
8 | + disableButtonIfEmptyField("#issue_title", ".save-btn"); | |
9 | 9 | }); |
10 | 10 | } |
11 | 11 | |
... | ... | @@ -16,7 +16,7 @@ function switchToEditIssue(form){ |
16 | 16 | $('select#issue_milestone_id').chosen(); |
17 | 17 | $("#edit_issue_dialog").show("fade", { direction: "right" }, 150); |
18 | 18 | $('.add_new').hide(); |
19 | - disableButtonIfEmtpyField("#issue_title", ".save-btn"); | |
19 | + disableButtonIfEmptyField("#issue_title", ".save-btn"); | |
20 | 20 | }); |
21 | 21 | } |
22 | 22 | ... | ... |
app/assets/javascripts/note.js
... | ... | @@ -32,7 +32,7 @@ var NoteList = { |
32 | 32 | $(".submit_note").removeAttr("disabled"); |
33 | 33 | }) |
34 | 34 | |
35 | - disableButtonIfEmtpyField(".note-text", ".submit_note"); | |
35 | + disableButtonIfEmptyField(".note-text", ".submit_note"); | |
36 | 36 | |
37 | 37 | $(".note-text").live("focus", function(){ |
38 | 38 | $(this).css("height", "80px"); |
... | ... | @@ -177,6 +177,6 @@ var PerLineNotes = { |
177 | 177 | form.show(); |
178 | 178 | return false; |
179 | 179 | }); |
180 | - disableButtonIfEmtpyField(".line-note-text", ".submit_inline_note"); | |
180 | + disableButtonIfEmptyField(".line-note-text", ".submit_inline_note"); | |
181 | 181 | } |
182 | 182 | } | ... | ... |
app/assets/javascripts/projects.js.coffee
... | ... | @@ -8,7 +8,7 @@ window.Projects = -> |
8 | 8 | $('.save-project-loader').show() |
9 | 9 | |
10 | 10 | $('form #project_default_branch').chosen() |
11 | - disableButtonIfEmtpyField '#project_name', '.project-submit' | |
11 | + disableButtonIfEmptyField '#project_name', '.project-submit' | |
12 | 12 | |
13 | 13 | # Git clone panel switcher |
14 | 14 | $ -> | ... | ... |
app/views/merge_requests/_form.html.haml
... | ... | @@ -60,7 +60,7 @@ |
60 | 60 | |
61 | 61 | :javascript |
62 | 62 | $(function(){ |
63 | - disableButtonIfEmtpyField("#merge_request_title", ".save-btn"); | |
63 | + disableButtonIfEmptyField("#merge_request_title", ".save-btn"); | |
64 | 64 | $('select#merge_request_assignee_id').chosen(); |
65 | 65 | $('select#merge_request_source_branch').chosen(); |
66 | 66 | $('select#merge_request_target_branch').chosen(); | ... | ... |
app/views/milestones/_form.html.haml
... | ... | @@ -41,7 +41,7 @@ |
41 | 41 | |
42 | 42 | :javascript |
43 | 43 | $(function() { |
44 | - disableButtonIfEmtpyField("#milestone_title", ".save-btn"); | |
44 | + disableButtonIfEmptyField("#milestone_title", ".save-btn"); | |
45 | 45 | $( ".datepicker" ).datepicker({ |
46 | 46 | dateFormat: "yy-mm-dd", |
47 | 47 | onSelect: function(dateText, inst) { $("#milestone_due_date").val(dateText) } | ... | ... |