Js refactoring and ajax animation replaced

This commit is contained in:
Dmitriy Zaporozhets 2012-03-26 21:41:58 +03:00
parent f1c534c68e
commit 7d56a51bdc
14 changed files with 41 additions and 54 deletions

View file

@ -0,0 +1,14 @@
function Projects() {
$("#project_name").live("change", function(){
var slug = slugify($(this).val());
$("#project_code").val(slug);
$("#project_path").val(slug);
});
$('.new_project, .edit_project').live('ajax:before', function() {
$('.project_new_holder, .project_edit_holder').hide();
$('.ajax_loader').show();
});
$('form #project_default_branch').chosen();
}