1
0
Fork 0
mirror of https://gitlab.easter-eggs.com/ee/ldapsaisie.git synced 2024-12-22 16:33:48 +01:00

- LSview : Passage par le JS de la traduction du label de suppression.

This commit is contained in:
Benjamin Renard 2009-02-17 08:41:21 +00:00
parent 35c7d32e6d
commit 80a374a29c
2 changed files with 3 additions and 2 deletions
trunk/includes

View file

@ -140,6 +140,7 @@ class LSform {
function displayView(){
LSsession :: addCssFile('LSform.css');
LSsession :: addJSscript('LSform.js');
LSsession :: addJSconfigParam('LSview_delete_label',_("Do you really want to delete"));
$LSform_object = array(
'type' => $this -> ldapObject -> getType(),
'dn' => $this -> ldapObject -> getDn()

View file

@ -43,7 +43,7 @@ var LSview = new Class({
this._confirmBoxOpen = 1;
var name = a.getParent().getPrevious('td').getElement('a').innerHTML;
this.confirmBox = new LSconfirmBox({
text: 'Etês-vous sur de vouloir supprimer "'+name+'" ?',
text: varLSdefault.LSjsConfig['LSview_delete_label'] + ' "'+name+'" ?',
startElement: a,
onConfirm: this.removeFromA.bind(this,a),
onClose: this.onConfirmBoxClose.bind(this)
@ -57,7 +57,7 @@ var LSview = new Class({
this._confirmBoxOpen = 1;
var name = $('LSview_title').innerHTML;
this.confirmBox = new LSconfirmBox({
text: 'Etês-vous sur de vouloir supprimer "'+name+'" ?',
text: varLSdefault.LSjsConfig['LSview_delete_label'] + ' "'+name+'" ?',
startElement: a,
onConfirm: this.removeFromA.bind(this,a),
onClose: this.onConfirmBoxClose.bind(this)