Merge pull request #5132 from betagouv/remove-old-design-tooltips

app: remove tooltips on the old design
This commit is contained in:
Paul Chavard 2020-05-12 10:44:49 +02:00 committed by GitHub
commit 1d6b396d8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 17 deletions

View file

@ -16,18 +16,3 @@
//= require smart_listing
//= require bootstrap-wysihtml5
//= require bootstrap-wysihtml5/locales/fr-FR
/* globals $ */
$(document).on('turbolinks:load', application_init);
function application_init() {
tooltip_init();
}
function tooltip_init() {
$('.action_button[data-toggle="tooltip"]').tooltip({
delay: { show: 100, hide: 100 }
});
$('[data-toggle="tooltip"]').tooltip({ delay: { show: 800, hide: 100 } });
}

View file

@ -85,6 +85,6 @@
- if @attestation_template.new_record? || !@attestation_template.activated
%button.btn.btn-success Activer l'attestation
- else
- save_data = @procedure.locked? ? { toggle: :tooltip, confirm: "Attention: les modifications n'affecteront pas les attestations déjà délivrées." } : nil
- save_data = @procedure.locked? ? { confirm: "Attention: les modifications n'affecteront pas les attestations déjà délivrées." } : nil
%button.btn.btn-success{ data: save_data } Enregistrer

View file

@ -12,7 +12,7 @@
- if @procedure.service.nil?
- missing_elements << 'un service'
- message = "Affectez #{missing_elements.join(' et ')} à votre démarche."
%button.action_button.btn.btn-success#disabled-publish-procedure{ data: { toggle: :tooltip, placement: :bottom }, style: 'float: right; margin-top: 10px;', disabled: true, title: message }
%button.action_button.btn.btn-success#disabled-publish-procedure{ style: 'float: right; margin-top: 10px;', disabled: true, title: message }
%i.fa.fa-eraser
Publier
- else