Merge pull request #5132 from betagouv/remove-old-design-tooltips
app: remove tooltips on the old design
This commit is contained in:
commit
1d6b396d8b
3 changed files with 2 additions and 17 deletions
|
@ -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 } });
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue