Révision 1fc93cd3
Ajouté par Serghei Mihai il y a environ 10 ans
calebasse/static/js/calebasse.agenda.js | ||
---|---|---|
266 | 266 |
$.cookie('agenda-' + ressource + '-tabs', agendatabs, { path: COOKIE_PATH }); |
267 | 267 |
} |
268 | 268 |
var target = $($(ressource_selector).data('target')); |
269 |
target.toggle(); |
|
270 |
$('#close-all-agendas').toggle($('li.agenda:visible').length != 0); |
|
269 |
target.toggle() |
|
270 |
$('#close-all-agendas').toggle($('#users li.active').length != 0); |
|
271 |
|
|
272 |
if (! $('#users li.active').length) { |
|
273 |
$('#agendas #tabs div').hide(); |
|
274 |
} |
|
271 | 275 |
|
272 | 276 |
var tab = $('#link-tab-' + ressource + '-' + ressource_id).parent().get(0); |
273 | 277 |
var tab_list = $(tab).parent().get(0); |
... | ... | |
312 | 316 |
collapsible: true}); |
313 | 317 |
enable_events($('body')); |
314 | 318 |
}, |
315 |
activate: function (event, ui) { |
|
316 |
/* trick to hide schedule div when tab closed */ |
|
317 |
$('span.ui-icon-circle-close', ui.newTab).unbind('click'); |
|
318 |
$('span.ui-icon-circle-close', ui.newTab).click(function() { |
|
319 |
ui.newPanel.hide(); |
|
320 |
}); |
|
321 |
}, |
|
322 | 319 |
selected: -1, |
323 | 320 |
collapsible: true, |
324 | 321 |
}); |
Formats disponibles : Unified diff
scheduled properly closed on toggling tabs