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,7 +5,7 @@ function switchToNewIssue(form){ | ||
| 5 | $('select#issue_milestone_id').chosen(); | 5 | $('select#issue_milestone_id').chosen(); |
| 6 | $("#new_issue_dialog").show("fade", { direction: "right" }, 150); | 6 | $("#new_issue_dialog").show("fade", { direction: "right" }, 150); |
| 7 | $('.top-tabs .add_new').hide(); | 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,7 +16,7 @@ function switchToEditIssue(form){ | ||
| 16 | $('select#issue_milestone_id').chosen(); | 16 | $('select#issue_milestone_id').chosen(); |
| 17 | $("#edit_issue_dialog").show("fade", { direction: "right" }, 150); | 17 | $("#edit_issue_dialog").show("fade", { direction: "right" }, 150); |
| 18 | $('.add_new').hide(); | 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,7 +32,7 @@ var NoteList = { | ||
| 32 | $(".submit_note").removeAttr("disabled"); | 32 | $(".submit_note").removeAttr("disabled"); |
| 33 | }) | 33 | }) |
| 34 | 34 | ||
| 35 | - disableButtonIfEmtpyField(".note-text", ".submit_note"); | 35 | + disableButtonIfEmptyField(".note-text", ".submit_note"); |
| 36 | 36 | ||
| 37 | $(".note-text").live("focus", function(){ | 37 | $(".note-text").live("focus", function(){ |
| 38 | $(this).css("height", "80px"); | 38 | $(this).css("height", "80px"); |
| @@ -177,6 +177,6 @@ var PerLineNotes = { | @@ -177,6 +177,6 @@ var PerLineNotes = { | ||
| 177 | form.show(); | 177 | form.show(); |
| 178 | return false; | 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,7 +8,7 @@ window.Projects = -> | ||
| 8 | $('.save-project-loader').show() | 8 | $('.save-project-loader').show() |
| 9 | 9 | ||
| 10 | $('form #project_default_branch').chosen() | 10 | $('form #project_default_branch').chosen() |
| 11 | - disableButtonIfEmtpyField '#project_name', '.project-submit' | 11 | + disableButtonIfEmptyField '#project_name', '.project-submit' |
| 12 | 12 | ||
| 13 | # Git clone panel switcher | 13 | # Git clone panel switcher |
| 14 | $ -> | 14 | $ -> |
app/views/merge_requests/_form.html.haml
| @@ -60,7 +60,7 @@ | @@ -60,7 +60,7 @@ | ||
| 60 | 60 | ||
| 61 | :javascript | 61 | :javascript |
| 62 | $(function(){ | 62 | $(function(){ |
| 63 | - disableButtonIfEmtpyField("#merge_request_title", ".save-btn"); | 63 | + disableButtonIfEmptyField("#merge_request_title", ".save-btn"); |
| 64 | $('select#merge_request_assignee_id').chosen(); | 64 | $('select#merge_request_assignee_id').chosen(); |
| 65 | $('select#merge_request_source_branch').chosen(); | 65 | $('select#merge_request_source_branch').chosen(); |
| 66 | $('select#merge_request_target_branch').chosen(); | 66 | $('select#merge_request_target_branch').chosen(); |
app/views/milestones/_form.html.haml
| @@ -41,7 +41,7 @@ | @@ -41,7 +41,7 @@ | ||
| 41 | 41 | ||
| 42 | :javascript | 42 | :javascript |
| 43 | $(function() { | 43 | $(function() { |
| 44 | - disableButtonIfEmtpyField("#milestone_title", ".save-btn"); | 44 | + disableButtonIfEmptyField("#milestone_title", ".save-btn"); |
| 45 | $( ".datepicker" ).datepicker({ | 45 | $( ".datepicker" ).datepicker({ |
| 46 | dateFormat: "yy-mm-dd", | 46 | dateFormat: "yy-mm-dd", |
| 47 | onSelect: function(dateText, inst) { $("#milestone_due_date").val(dateText) } | 47 | onSelect: function(dateText, inst) { $("#milestone_due_date").val(dateText) } |