Révision e4e0b5fc
Ajouté par Jérôme Schneider il y a environ 10 ans
calebasse/static/js/calebasse.agenda.js | ||
---|---|---|
316 | 316 |
/* load ressource disponibility column */ |
317 | 317 |
$.get(url + 'ajax-' + ressource + '-disponibility-column/' + ressource_id, |
318 | 318 |
function(data) { |
319 |
var dispo_table_rows = $('td#dispos table tr'); |
|
320 |
all_td = $(data).find('td'); |
|
321 |
$(data).find('td').each(function(a, b) { |
|
322 |
$(dispo_table_rows[a]).append(b); |
|
323 |
}); |
|
319 |
if ($(tab_selector).hasClass('active')) { |
|
320 |
var dispo_table_rows = $('td#dispos table tr'); |
|
321 |
all_td = $(data).find('td'); |
|
322 |
$(data).find('td').each(function(a, b) { |
|
323 |
$(dispo_table_rows[a]).append(b); |
|
324 |
}); |
|
325 |
} |
|
324 | 326 |
} |
325 | 327 |
); |
326 | 328 |
} else { |
Formats disponibles : Unified diff
calebasse.agenda.js: test if the agenda is active before displaying disponibility bar
Closes #4286