mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
- LSformElement_image : Ajout de LStips pour les boutons.
This commit is contained in:
parent
9772c4fe9e
commit
ea23603506
2 changed files with 9 additions and 1 deletions
|
@ -47,6 +47,13 @@ class LSformElement_image extends LSformElement {
|
||||||
$GLOBALS['LSsession'] -> addCssFile('LSformElement_image.css');
|
$GLOBALS['LSsession'] -> addCssFile('LSformElement_image.css');
|
||||||
$return = true;
|
$return = true;
|
||||||
if (!$this -> isFreeze()) {
|
if (!$this -> isFreeze()) {
|
||||||
|
$GLOBALS['LSsession'] -> addHelpInfos(
|
||||||
|
'LSformElement_date',
|
||||||
|
array(
|
||||||
|
'zoom' => _('Cliquer pour agrandir.'),
|
||||||
|
'delete' => _('Cliquer pour supprimer cette image.')
|
||||||
|
)
|
||||||
|
);
|
||||||
$id=$this -> name.'_'.rand();
|
$id=$this -> name.'_'.rand();
|
||||||
$return = $this -> getLabelInfos();
|
$return = $this -> getLabelInfos();
|
||||||
$return['html'] = $this -> fetchTemplate(NULL,array('id' => 'LSformElement_image_input_'.$id));
|
$return['html'] = $this -> fetchTemplate(NULL,array('id' => 'LSformElement_image_input_'.$id));
|
||||||
|
|
|
@ -12,12 +12,13 @@ var LSformElement_image = new Class({
|
||||||
var getId = /LSformElement_image_action_zoom_(.*)/
|
var getId = /LSformElement_image_action_zoom_(.*)/
|
||||||
var id = getId.exec(el.id)[1];
|
var id = getId.exec(el.id)[1];
|
||||||
var img = $('LSformElement_image_' + id);
|
var img = $('LSformElement_image_' + id);
|
||||||
var src = img.src;
|
|
||||||
el.addEvent('click',this.zoomImg.bindWithEvent(this,img));
|
el.addEvent('click',this.zoomImg.bindWithEvent(this,img));
|
||||||
|
varLSdefault.addHelpInfo(el,'LSformElement_date','zoom');
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
$$('img.LSformElement_image_action_delete').each(function(el) {
|
$$('img.LSformElement_image_action_delete').each(function(el) {
|
||||||
el.addEvent('click',this.onImageDeleteBtnClick.bind(this,el));
|
el.addEvent('click',this.onImageDeleteBtnClick.bind(this,el));
|
||||||
|
varLSdefault.addHelpInfo(el,'LSformElement_date','delete');
|
||||||
}, this);
|
}, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue