diff --git a/squelettes/content/auteur.html b/squelettes/content/auteur.html index 0894913697e7c692af19fec88e858929751d3ea4..2a20784c9d1e521385dd6a7b84f0f8d845842364 100644 --- a/squelettes/content/auteur.html +++ b/squelettes/content/auteur.html @@ -55,6 +55,7 @@ </BOUCLE_si_favoris> <div class="tab-pane fade[ (#GET{active}|=={revisions}|?{active show})]" id="revisions" role="tabpanel" aria-labelledby="revisions-tab"> <h2>[(#SESSION{id_auteur}|=={#ID_AUTEUR}|?{<:tradlang:titre_revisions_vos:>,<:tradlang:titre_revisions_ses:>})]</h2> + #SET{url_modif,#URL_PAGE{tradlang_revision}} <INCLURE{fond=noisettes/listes/versions,objet=tradlang,url_modif=#GET{url_modif},id_auteur,ajax,nb=15,sinon=<:revisions:info_aucune_revision:>} /> </div> <div class="tab-pane fade[ (#GET{active}|=={stats}|?{active show})]" id="stats" role="tabpanel" aria-labelledby="stats-tab"> diff --git a/squelettes/inclure/head.html b/squelettes/inclure/head.html index 894962eda7ce6ca83ab20191ec96c2819477bc9c..29c62e5977d1873563639e5bc0598b24f608962c 100644 --- a/squelettes/inclure/head.html +++ b/squelettes/inclure/head.html @@ -57,7 +57,8 @@ var error_on_ajaxform='<:erreur_technique_ajaxform|html2unicode|addslashes|unico ] #INSERT_HEAD [<script type="text/javascript" src="(#CHEMIN{javascript/tradlang.js}|timestamp)"></script>] +[<script type="text/javascript" src="(#CHEMIN{js/popper.js}|timestamp)"></script>] [<script type="text/javascript" src="(#CHEMIN{js/bootstrap-util.js}|timestamp)"></script>] [<script type="text/javascript" src="(#CHEMIN{js/bootstrap-tab.js}|timestamp)"></script>] - - +[<script type="text/javascript" src="(#CHEMIN{js/bootstrap-tooltip.js}|timestamp)"></script>] +[<script type="text/javascript" src="(#CHEMIN{javascript/tradlang_tooltip.js}|timestamp)"></script>] \ No newline at end of file diff --git a/squelettes/javascript/tradlang_tooltip.js b/squelettes/javascript/tradlang_tooltip.js index 65972996f1503100f7a5b02334213d4da933c742..44cf6dac088e3db5c3af4803205af31729196810 100644 --- a/squelettes/javascript/tradlang_tooltip.js +++ b/squelettes/javascript/tradlang_tooltip.js @@ -1,12 +1,10 @@ -var crayons_textarea = function(){ - $('.crayon-html textarea').tooltip({ - showURL: false - }); -} +jQuery(function(){ -$(document).ready(function(){ - $('.bilan a,.bilan abbr,.bilan tr,.bilan td,.bilan .graph,textarea').tooltip({ - showURL: false - }); - onAjaxLoad(crayons_textarea); -}); \ No newline at end of file + function setTooltips() { + jQuery('[data-toggle="tooltip"],.bilan a,.bilan abbr,.bilan tr,.bilan td, textarea', this).tooltip(); + //$('.crayon-html textarea').tooltip(); + } + + setTooltips.apply(jQuery('body').get(0)); + onAjaxLoad(setTooltips); +}); diff --git a/squelettes/mes_fonctions.php b/squelettes/mes_fonctions.php index 22e42833500420c5007386d00f00e5833866b4e6..bfabf5a11a300877f535f53401e65b555222fc22 100644 --- a/squelettes/mes_fonctions.php +++ b/squelettes/mes_fonctions.php @@ -47,7 +47,7 @@ function tradlang_affiche_progressbar($total_ok, $total_relire, $total_modif, $t $title = _T('tradlang:info_module_traduit_pc', array('pc' => $percent['ok'])); } - $progress = "<div class=\"progress\" title=\"" . attribut_html($title) . "\">"; + $progress = "<div class=\"progress\" data-toggle=\"tooltip\" title=\"" . attribut_html($title) . "\">"; foreach(['ok', 'relire', 'modif', 'new'] as $s) { $v = $percent[$s]; $progress .= '<div class="progress-bar bg-' . statut_to_variant($s) . '" role="progressbar" style="width:'.$v.'%" aria-valuenow="'.$v.'" aria-valuemin="0" aria-valuemax="100">';