Révision e8a1fe31
Ajouté par Jérôme Schneider il y a plus de 9 ans
calebasse/static/js/calebasse.dossiers.js | ||
---|---|---|
268 | 268 |
} |
269 | 269 |
}); |
270 | 270 |
}); |
271 |
$('.social-security-label').click(function() { |
|
272 |
var label = $(this).html(); |
|
273 |
var data = $(this).next(); |
|
274 |
if (($(data).is(':hidden'))) { |
|
275 |
$(this).html(label.replace('+', '-')); |
|
276 |
$(this).css("font-weight", "bold"); |
|
277 |
} else { |
|
278 |
$(this).html(label.replace('-', '+')); |
|
279 |
$(this).css("font-weight", ""); |
|
280 |
} |
|
281 |
$(data).toggle(); |
|
282 |
}); |
|
283 | 271 |
var hashes = location.hash.split('&'); |
284 | 272 |
for (i in hashes) { |
285 | 273 |
if (hashes[i] == "newcontact") { |
... | ... | |
339 | 327 |
} |
340 | 328 |
|
341 | 329 |
function load_tab7_socialisation() { |
342 |
$('#new-socialisation-duration-btn').click(function() {
|
|
330 |
$('#new-socialisation-duration-btn').on("click", function() {
|
|
343 | 331 |
generic_ajaxform_dialog('socialisation/new', 'Ajouter une période de socialisation', |
344 | 332 |
'#ajax-dlg', '800px', 'Ajouter', null, add_datepickers); |
345 | 333 |
}); |
... | ... | |
387 | 375 |
$(function() { |
388 | 376 |
var $tabs = $('#tabs').tabs({ |
389 | 377 |
load: function(event, ui) { |
378 |
$(document).on('click', '.js-click-to-expand', function (event) { |
|
379 |
$(event.target).parents('.js-expandable').toggleClass('js-expanded'); |
|
380 |
}); |
|
390 | 381 |
var tabid = $(ui.tab).attr('id'); |
391 | 382 |
if (tabid == "ui-id-1") |
392 |
load_tab1_general(); |
|
383 |
load_tab1_general();
|
|
393 | 384 |
else if (tabid == "ui-id-2") |
394 |
load_tab2_adm(); |
|
385 |
load_tab2_adm();
|
|
395 | 386 |
else if (tabid == "ui-id-3") |
396 |
load_tab3_addresses(); |
|
387 |
load_tab3_addresses();
|
|
397 | 388 |
else if (tabid == "ui-id-4") |
398 |
load_tab4_notifs(); |
|
389 |
load_tab4_notifs();
|
|
399 | 390 |
else if (tabid == "ui-id-7") |
400 |
load_tab7_socialisation(); |
|
391 |
load_tab7_socialisation();
|
|
401 | 392 |
else if (tabid == "ui-id-8") |
402 |
load_tab8_medical(); |
|
393 |
load_tab8_medical();
|
|
403 | 394 |
}, |
404 | 395 |
selected: -1, |
405 | 396 |
collapsible: true, |
Formats disponibles : Unified diff
dossiers: render pause facturation comment expandable
Closes #5010