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-04 16:15:33 +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-04 16:15:33 +02:00
|
|
|
$("#pref_list_menu").animate({
|
|
|
|
right: 0
|
|
|
|
}, 250);
|
|
|
|
});
|
2016-08-01 18:10:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function pref_list_dossier_close_action() {
|
2017-04-04 16:15:33 +02:00
|
|
|
$("#pref_list_dossier_close_action").on('click', function () {
|
|
|
|
$("#pref_list_menu").animate({
|
|
|
|
right: parseInt($("#pref_list_menu").css('width'), 10)*(-1)+'px'
|
|
|
|
},{
|
|
|
|
duration: 250,
|
|
|
|
complete: function () {
|
|
|
|
$("#pref_list_menu").css('display', 'none');
|
|
|
|
$("#pref_list_menu").css('visibility', 'hidden');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
)
|
|
|
|
});
|
2016-11-07 10:30:45 +01:00
|
|
|
}
|