2017-03-30 17:00:35 +02:00
|
|
|
$(document).on('turbolinks:load', pref_list_dossier_actions);
|
2016-08-01 18:10:32 +02:00
|
|
|
|
|
|
|
function pref_list_dossier_actions() {
|
2017-04-04 16:15:33 +02:00
|
|
|
pref_list_dossier_open_action();
|
|
|
|
pref_list_dossier_close_action();
|
2016-08-01 18:10:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function pref_list_dossier_open_action() {
|
2017-04-12 11:12:05 +02:00
|
|
|
$("#pref-list-dossier-open-action").on('click', function () {
|
|
|
|
$("#pref-list-menu").css('display', 'block');
|
|
|
|
$("#pref-list-menu").css('visibility', 'visible');
|
2016-08-01 18:10:32 +02:00
|
|
|
|
2017-04-12 11:12:05 +02:00
|
|
|
$("#pref-list-menu").animate({
|
2017-04-04 16:15:33 +02:00
|
|
|
right: 0
|
|
|
|
}, 250);
|
|
|
|
});
|
2016-08-01 18:10:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function pref_list_dossier_close_action() {
|
2017-04-12 11:12:05 +02:00
|
|
|
$("#pref-list-dossier-close-action").on('click', function () {
|
|
|
|
$("#pref-list-menu").animate({
|
|
|
|
right: parseInt($("#pref-list-menu").css('width'), 10)*(-1)+'px'
|
2017-04-04 16:15:33 +02:00
|
|
|
},{
|
|
|
|
duration: 250,
|
|
|
|
complete: function () {
|
2017-04-12 11:12:05 +02:00
|
|
|
$("#pref-list-menu").css('display', 'none');
|
|
|
|
$("#pref-list-menu").css('visibility', 'hidden');
|
2017-04-04 16:15:33 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
});
|
2016-11-07 10:30:45 +01:00
|
|
|
}
|