diff --git a/resources/www/common/js/components/common.js b/resources/www/common/js/components/common.js index 5f5db50428..068371a2a6 100644 --- a/resources/www/common/js/components/common.js +++ b/resources/www/common/js/components/common.js @@ -31,10 +31,14 @@ var commonModule = (function ($, p4) { $(this).removeClass('context-menu-item-hover'); }); - $('#help-trigger').contextMenu('#mainMenu .helpcontextmenu', {openEvt: 'click', dropDown: true, theme: 'vista', dropDown: true, - showTransition: 'slideDown', - hideTransition: 'hide', - shadow: false + // $('#help-trigger').contextMenu('#mainMenu .helpcontextmenu', {openEvt: 'click', dropDown: true, theme: 'vista', dropDown: true, + // showTransition: 'slideDown', + // hideTransition: 'hide', + // shadow: false + // }); + + $('body').on('click', '.infoDialog', function (event) { + infoDialog($(this)); }); }); @@ -89,6 +93,26 @@ var commonModule = (function ($, p4) { $('#' + div).hide().remove(); } + function infoDialog(el) { + $("#DIALOG").attr('title', '') + .empty() + .append(el.attr('infos')) + .dialog({ + + autoOpen: false, + closeOnEscape: true, + resizable: false, + draggable: false, + width: 600, + height: 400, + modal: true, + overlay: { + backgroundColor: '#000', + opacity: 0.7 + } + }).dialog('open').css({'overflow-x': 'auto', 'overflow-y': 'auto'}); + } + // @deprecated function manageSession(data, showMessages) { diff --git a/templates/web/common/menubar.html.twig b/templates/web/common/menubar.html.twig index 24fdc6b267..b01c67d00a 100644 --- a/templates/web/common/menubar.html.twig +++ b/templates/web/common/menubar.html.twig @@ -153,7 +153,7 @@ {% endif %} +

gitlog

">{{ 'phraseanet:: a propos' | trans }}