Update of edit view
- Add Is unlimited field
This commit is contained in:
mespeche
2013-09-03 11:04:55 +02:00
parent 42175ca4eb
commit 9dc8518202
2 changed files with 55 additions and 31 deletions

View File

@@ -51,6 +51,24 @@
});
}
// -- Max usage --
if($('#is-unlimited').length){
if($('#is-unlimited').is(':checked')){
$('#max-usage').hide().val('');
}
$('#is-unlimited').change(function(){
if($('#is-unlimited').is(':checked')){
$('#max-usage').hide().val('');
}
else{
$('#max-usage').show();
}
});
}
// -- Confirm Box --
if($('[data-toggle="confirm"]').length){
$('[data-toggle="confirm"]').click(function(e){