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:
parent
3f7d97c83a
commit
fc01279bb4
@ -1,5 +1,5 @@
|
||||
CACHE MANIFEST
|
||||
# last update 2017-05-21
|
||||
# last update 2017-05-21b
|
||||
#CACHE:
|
||||
index.html
|
||||
zelda-botw.css
|
||||
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user