From 36314b34b7b1fb0484ae5af97880d63f59d704f8 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 10 Nov 2008 03:23:29 +0000 Subject: [PATCH] - LSformElement_select_object : Ajout de LStips sur les boutons. --- .../includes/class/class.LSformElement_select_object.php | 9 +++++++++ trunk/includes/js/LSformElement_select_object_field.js | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/trunk/includes/class/class.LSformElement_select_object.php b/trunk/includes/class/class.LSformElement_select_object.php index 5708b2b6..74b62254 100644 --- a/trunk/includes/class/class.LSformElement_select_object.php +++ b/trunk/includes/class/class.LSformElement_select_object.php @@ -61,6 +61,15 @@ class LSformElement_select_object extends LSformElement { 'noResultLabel' => _('Aucun résultat') ) ); + + $GLOBALS['LSsession'] -> addHelpInfos ( + 'LSformElement_select_object', + array( + 'searchAdd' => _("Ajout rapide"), + 'add' => _("Afficher le module de recherche avancée et de sélection."), + 'delete' => _("Supprimer") + ) + ); $GLOBALS['LSsession'] -> addJSscript('LSformElement_select_object_field.js'); $GLOBALS['LSsession'] -> addJSscript('LSformElement_select_object.js'); diff --git a/trunk/includes/js/LSformElement_select_object_field.js b/trunk/includes/js/LSformElement_select_object_field.js index 33aae8d7..edfa3382 100644 --- a/trunk/includes/js/LSformElement_select_object_field.js +++ b/trunk/includes/js/LSformElement_select_object_field.js @@ -37,6 +37,7 @@ var LSformElement_select_object_field = new Class({ this.addBtn.set('html',this.params.addBtn); this.addBtn.addEvent('click',this.onAddBtnClick.bindWithEvent(this)); this.addBtn.injectInside(this.li); + varLSdefault.addHelpInfo(this.addBtn,'LSformElement_select_object','add'); this.li.inject(this.ul,'top'); } @@ -58,6 +59,7 @@ var LSformElement_select_object_field = new Class({ }); btn.addEvent('click',this.onDeleteBtnClick.bind(this,btn)); btn.injectAfter(a); + varLSdefault.addHelpInfo(btn,'LSformElement_select_object','delete'); }, addSingleAddBtn: function(insideEl) { @@ -66,6 +68,7 @@ var LSformElement_select_object_field = new Class({ this.addBtn.addClass('btn'); this.addBtn.addEvent('click',this.onAddBtnClick.bindWithEvent(this)); this.addBtn.injectInside(insideEl); + varLSdefault.addHelpInfo(this.addBtn,'LSformElement_select_object','add'); }, addSearchAddBtn: function() { @@ -74,6 +77,7 @@ var LSformElement_select_object_field = new Class({ this.searchAddBtn.addClass('btn'); this.searchAddBtn.addEvent('click',this.onSearchAddBtnClick.bindWithEvent(this)); this.searchAddBtn.injectAfter(this.addBtn); + varLSdefault.addHelpInfo(this.searchAddBtn,'LSformElement_select_object','searchAdd'); }, onAddBtnClick: function(event) {