Correction d'une erreur
This commit is contained in:
@@ -30,19 +30,15 @@ var SecondaryAuthorManager = Class.create({
|
||||
KeyPressHandler: function(event){
|
||||
switch(event.keyCode){
|
||||
case Event.KEY_RETURN:
|
||||
this.AddSecondaryAuthor(null);
|
||||
this.AddSecondaryAuthor();
|
||||
event.stop();
|
||||
return false;
|
||||
}
|
||||
},
|
||||
AddSecondaryAuthor: function(name) {
|
||||
AddSecondaryAuthor: function() {
|
||||
var ref = this.lastRef++;
|
||||
var elemName = "liste["+ref+"]";
|
||||
var value;
|
||||
if (name == null)
|
||||
value = $('newSecondaryAuthorInput').value;
|
||||
else
|
||||
value = name;
|
||||
var value = $('newSecondaryAuthorInput').value;
|
||||
var hidden = new Element('input',{'id':elemName,'name':elemName,'type':'hidden','value':value});
|
||||
var elem = new Element('div',
|
||||
{ 'class':'dynamicListItem',
|
||||
@@ -52,9 +48,6 @@ var SecondaryAuthorManager = Class.create({
|
||||
$('secondaryAuthorList').insert(elem);
|
||||
$(this.inputField).clear();
|
||||
elem.appear();
|
||||
},
|
||||
FillSecondaryAuthor: function(liste) {
|
||||
liste.each(this.AddSecondaryAuthor.bind(this));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user