0
0
mirror of https://github.com/marcrobledo/savegame-editors.git synced 2025-04-28 09:05:10 +00:00

fixed add item button

This commit is contained in:
Marc Robledo 2017-05-21 21:40:24 +02:00
parent 3f7d97c83a
commit fc01279bb4
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
CACHE MANIFEST
# last update 2017-05-21
# last update 2017-05-21b
#CACHE:
index.html
zelda-botw.css

View File

@ -218,12 +218,12 @@ SavegameEditor={
addItem:function(){
var i=0;
while(document.getElementById('number-item'+i)){
while(document.getElementById('number-item'+i) || document.getElementById('select-item'+i)){
i++;
}
if(i<this.Constants.MAX_ITEMS){
this._writeItemName(i,'Item_Fruit_A');
document.getElementById('card-materials').appendChild(this._createItemRow(i, false));
document.getElementById('container-materials').appendChild(this._createItemRow(i, false));
this.editItem(i);
}
},