mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
- LSview : Passage par le JS de la traduction du label de suppression.
This commit is contained in:
parent
35c7d32e6d
commit
80a374a29c
2 changed files with 3 additions and 2 deletions
|
@ -140,6 +140,7 @@ class LSform {
|
||||||
function displayView(){
|
function displayView(){
|
||||||
LSsession :: addCssFile('LSform.css');
|
LSsession :: addCssFile('LSform.css');
|
||||||
LSsession :: addJSscript('LSform.js');
|
LSsession :: addJSscript('LSform.js');
|
||||||
|
LSsession :: addJSconfigParam('LSview_delete_label',_("Do you really want to delete"));
|
||||||
$LSform_object = array(
|
$LSform_object = array(
|
||||||
'type' => $this -> ldapObject -> getType(),
|
'type' => $this -> ldapObject -> getType(),
|
||||||
'dn' => $this -> ldapObject -> getDn()
|
'dn' => $this -> ldapObject -> getDn()
|
||||||
|
|
|
@ -43,7 +43,7 @@ var LSview = new Class({
|
||||||
this._confirmBoxOpen = 1;
|
this._confirmBoxOpen = 1;
|
||||||
var name = a.getParent().getPrevious('td').getElement('a').innerHTML;
|
var name = a.getParent().getPrevious('td').getElement('a').innerHTML;
|
||||||
this.confirmBox = new LSconfirmBox({
|
this.confirmBox = new LSconfirmBox({
|
||||||
text: 'Etês-vous sur de vouloir supprimer "'+name+'" ?',
|
text: varLSdefault.LSjsConfig['LSview_delete_label'] + ' "'+name+'" ?',
|
||||||
startElement: a,
|
startElement: a,
|
||||||
onConfirm: this.removeFromA.bind(this,a),
|
onConfirm: this.removeFromA.bind(this,a),
|
||||||
onClose: this.onConfirmBoxClose.bind(this)
|
onClose: this.onConfirmBoxClose.bind(this)
|
||||||
|
@ -57,7 +57,7 @@ var LSview = new Class({
|
||||||
this._confirmBoxOpen = 1;
|
this._confirmBoxOpen = 1;
|
||||||
var name = $('LSview_title').innerHTML;
|
var name = $('LSview_title').innerHTML;
|
||||||
this.confirmBox = new LSconfirmBox({
|
this.confirmBox = new LSconfirmBox({
|
||||||
text: 'Etês-vous sur de vouloir supprimer "'+name+'" ?',
|
text: varLSdefault.LSjsConfig['LSview_delete_label'] + ' "'+name+'" ?',
|
||||||
startElement: a,
|
startElement: a,
|
||||||
onConfirm: this.removeFromA.bind(this,a),
|
onConfirm: this.removeFromA.bind(this,a),
|
||||||
onClose: this.onConfirmBoxClose.bind(this)
|
onClose: this.onConfirmBoxClose.bind(this)
|
||||||
|
|
Loading…
Reference in a new issue