Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-26 22:41:58 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-26 22:41:58 +0400
commit7d56a51bdcffa2413a68779e4899e8139c1ba4f9 (patch)
tree7dcb80148a424b21cd4791ca22da59819f5be0d3 /app/views/projects/new.html.haml
parentf1c534c68eecf68c72ce401e30c3d7d846052885 (diff)
Js refactoring and ajax animation replaced
Diffstat (limited to 'app/views/projects/new.html.haml')
-rw-r--r--app/views/projects/new.html.haml31
1 files changed, 7 insertions, 24 deletions
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml
index 5883e7b8890..3f3d51d038a 100644
--- a/app/views/projects/new.html.haml
+++ b/app/views/projects/new.html.haml
@@ -1,28 +1,11 @@
-%h3 New Project
-%hr
-= render 'form'
-%div{ :class => "ajax_loader", :style => "display:none;height:200px;"}
+.project_new_holder
+ %h3 New Project
+ %hr
+ = render 'form'
+%div.ajax_loader.hide
%center
- = image_tag "ajax-loader.gif", :class => "append-bottom"
+ %div.padded= image_tag "ajax_loader.gif"
%h3.prepend-top Creating project &amp; repository. Please wait for few minutes
:javascript
- $(function(){
- $("#project_name").live("change", function(){
- var slug = slugify($(this).val());
- $("#project_code").val(slug);
- $("#project_path").val(slug);
- });
- });
-
- function slugify(text) {
- return text.replace(/[^-a-zA-Z0-9]+/g, '_').toLowerCase();
- }
-
- $(function(){
- $('.new_project').live('ajax:before', function() {
- $(this).hide();
- $('.ajax_loader').show();
- });
- $('form #project_default_branch').chosen();
- })
+ $(function(){ new Projects(); });