Commit c1ff89fa2adc4809ea093833464f41ea9af5bc6f
1 parent
d6ea70c9
Exists in
master
and in
4 other branches
Rename projects.js to projects.js.coffee
Showing
2 changed files
with
25 additions
and
25 deletions
Show diff stats
app/assets/javascripts/projects.js
@@ -1,25 +0,0 @@ | @@ -1,25 +0,0 @@ | ||
1 | -function Projects() { | ||
2 | - $("#project_name").live("change", function(){ | ||
3 | - var slug = slugify($(this).val()); | ||
4 | - $("#project_code").val(slug); | ||
5 | - $("#project_path").val(slug); | ||
6 | - }); | ||
7 | - | ||
8 | - $('.new_project, .edit_project').live('ajax:before', function() { | ||
9 | - $('.project_new_holder, .project_edit_holder').hide(); | ||
10 | - $('.save-project-loader').show(); | ||
11 | - }); | ||
12 | - | ||
13 | - $('form #project_default_branch').chosen(); | ||
14 | - | ||
15 | - disableButtonIfEmtpyField("#project_name", ".project-submit") | ||
16 | -} | ||
17 | - | ||
18 | -function initGitCloneSwitcher() { | ||
19 | - var link_sel = ".project_clone_holder button"; | ||
20 | - $(link_sel).bind("click", function(e) { | ||
21 | - $(link_sel).removeClass("active"); | ||
22 | - $(this).addClass("active"); | ||
23 | - $("#project_clone").val($(this).attr("data-clone")); | ||
24 | - }) | ||
25 | -} |
@@ -0,0 +1,25 @@ | @@ -0,0 +1,25 @@ | ||
1 | +function Projects() { | ||
2 | + $("#project_name").live("change", function(){ | ||
3 | + var slug = slugify($(this).val()); | ||
4 | + $("#project_code").val(slug); | ||
5 | + $("#project_path").val(slug); | ||
6 | + }); | ||
7 | + | ||
8 | + $('.new_project, .edit_project').live('ajax:before', function() { | ||
9 | + $('.project_new_holder, .project_edit_holder').hide(); | ||
10 | + $('.save-project-loader').show(); | ||
11 | + }); | ||
12 | + | ||
13 | + $('form #project_default_branch').chosen(); | ||
14 | + | ||
15 | + disableButtonIfEmtpyField("#project_name", ".project-submit") | ||
16 | +} | ||
17 | + | ||
18 | +function initGitCloneSwitcher() { | ||
19 | + var link_sel = ".project_clone_holder button"; | ||
20 | + $(link_sel).bind("click", function(e) { | ||
21 | + $(link_sel).removeClass("active"); | ||
22 | + $(this).addClass("active"); | ||
23 | + $("#project_clone").val($(this).attr("data-clone")); | ||
24 | + }) | ||
25 | +} |