2012-03-26 20:41:58 +02:00
|
|
|
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();
|
2012-08-30 21:15:34 +02:00
|
|
|
$('.save-project-loader').show();
|
2012-03-26 20:41:58 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
$('form #project_default_branch').chosen();
|
2012-08-30 21:15:34 +02:00
|
|
|
|
|
|
|
disableButtonIfEmtpyField("#project_name", ".project-submit")
|
2012-03-26 20:41:58 +02:00
|
|
|
}
|