Remove dead code

This commit is contained in:
Paul Chavard 2018-10-02 17:06:31 +02:00
parent 7898a33469
commit 6ed4bb538c
3 changed files with 0 additions and 39 deletions

View file

@ -23,7 +23,6 @@ $(document).on('turbolinks:load', application_init);
function application_init() {
tooltip_init();
scroll_to();
}
function tooltip_init() {
@ -32,13 +31,3 @@ function tooltip_init() {
});
$('[data-toggle="tooltip"]').tooltip({ delay: { show: 800, hide: 100 } });
}
function scroll_to() {
$('.js-scrollTo').on('click', function() {
// Au clic sur un élément
var page = $(this).attr('cible'); // Page cible
var speed = 600; // Durée de l'animation (en ms)
$('html, body').animate({ scrollTop: $(page).offset().top - 200 }, speed); // Go
return false;
});
}

View file

@ -1,17 +0,0 @@
/* globals $ */
$(document).on('turbolinks:load', init_modal_commentaire);
function init_modal_commentaire() {
var modal = $('#modalCommentairesDossierParChamp');
var body = modal.find('.modal-body');
var originalBody = body.html();
modal.on('show.bs.modal', function(e) {
body.load(e.relatedTarget.getAttribute('data-href'));
});
$('#modalCommentairesDossierParChamp').on('hidden.bs.modal', function() {
body.html(originalBody);
});
}

View file

@ -1,11 +0,0 @@
.row
.col-xs-12
#map.mini{ class: @facade.dossier.procedure.module_api_carto.classes }
%input#json_latlngs{ type: 'hidden', value: "#{@facade.dossier.json_latlngs}" }
%input#quartier_prioritaires{ type: 'hidden', value: "#{@facade.dossier.quartier_prioritaires.to_json}" }
%input#cadastres{ type: 'hidden', value: "#{@facade.dossier.cadastres.to_json}" }
%script{ type: 'text/javascript' }
= "var dossier_id =#{@facade.dossier.id}"
initCarto();