agenda: reccuring appointment end date read only if related acts pointed

Closes #5594

Signed-off-by: Mikaël Ates <mates@entrouvert.com>
This commit is contained in:
Serghei Mihai 2014-10-01 20:16:06 +02:00 committed by Mikaël Ates
parent 04eb569d56
commit 02ce35550b
2 changed files with 2 additions and 3 deletions

View File

@ -22,8 +22,7 @@ function generic_ajaxform_dialog(url, title, id, width, btn_submit_name, redirec
height = 'auto';
$(id).load(url,
function () {
$('.datepicker-date').datepicker({dateFormat: 'd/m/yy', showOn: 'button'});
$('.datepicker input').datepicker({dateFormat: 'd/m/yy', showOn: 'button'});
init_datepickers(id);
function onsuccess(response, status, xhr, form) {
enable_button($('#submit-btn'));
var parse = $(response);

View File

@ -9,5 +9,5 @@ function delete_prompt(text) {
function init_datepickers(on) {
$('.datepicker-date', on).datepicker({dateFormat: 'd/m/yy', showOn: 'button'});
$('.datepicker input', on).datepicker({dateFormat: 'd/m/yy', showOn: 'button'});
$('.datepicker input[type=text]', on).datepicker({dateFormat: 'd/m/yy', showOn: 'button'});
}