calebasse / calebasse / static / js / common.js @ 54318d2c
1 |
function delete_prompt(text) { |
---|---|
2 |
var r = prompt(text + '\n Pour cela veuillez entrer DEL'); |
3 |
if (r.toLowerCase().replace(/^\s+|\s+$/g, '') == 'del') { |
4 |
return true; |
5 |
} else { |
6 |
return false; |
7 |
}
|
8 |
}
|
9 |
|
10 |
function init_datepickers(on) { |
11 |
$('.datepicker-date', on).datepicker({dateFormat: 'd/m/yy', showOn: 'button'}); |
12 |
$('.datepicker input', on).datepicker({dateFormat: 'd/m/yy', showOn: 'button'}); |
13 |
}
|