diff --git a/trunk/includes/class/class.LSformElement_image.php b/trunk/includes/class/class.LSformElement_image.php index ac3210bf..a2f121ef 100644 --- a/trunk/includes/class/class.LSformElement_image.php +++ b/trunk/includes/class/class.LSformElement_image.php @@ -47,6 +47,13 @@ class LSformElement_image extends LSformElement { $GLOBALS['LSsession'] -> addCssFile('LSformElement_image.css'); $return = true; if (!$this -> isFreeze()) { + $GLOBALS['LSsession'] -> addHelpInfos( + 'LSformElement_date', + array( + 'zoom' => _('Cliquer pour agrandir.'), + 'delete' => _('Cliquer pour supprimer cette image.') + ) + ); $id=$this -> name.'_'.rand(); $return = $this -> getLabelInfos(); $return['html'] = $this -> fetchTemplate(NULL,array('id' => 'LSformElement_image_input_'.$id)); diff --git a/trunk/includes/js/LSformElement_image.js b/trunk/includes/js/LSformElement_image.js index 17a010d6..8745af38 100644 --- a/trunk/includes/js/LSformElement_image.js +++ b/trunk/includes/js/LSformElement_image.js @@ -12,12 +12,13 @@ var LSformElement_image = new Class({ var getId = /LSformElement_image_action_zoom_(.*)/ var id = getId.exec(el.id)[1]; var img = $('LSformElement_image_' + id); - var src = img.src; el.addEvent('click',this.zoomImg.bindWithEvent(this,img)); + varLSdefault.addHelpInfo(el,'LSformElement_date','zoom'); }, this); $$('img.LSformElement_image_action_delete').each(function(el) { el.addEvent('click',this.onImageDeleteBtnClick.bind(this,el)); + varLSdefault.addHelpInfo(el,'LSformElement_date','delete'); }, this); },