From fdf24481b6b53b1da75558f5559e459498cbbfb4 Mon Sep 17 00:00:00 2001 From: libccy Date: Fri, 14 Apr 2017 12:12:13 +0800 Subject: [PATCH] a --- game/game.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/game/game.js b/game/game.js index 1d6759d4d..cb95f54da 100644 --- a/game/game.js +++ b/game/game.js @@ -817,7 +817,7 @@ editbg.call(node.lastChild); } } - }); + }).inputNode.accept='image/jpeg'; var editbg=function(){ this.classList.toggle('active'); var page=this.parentNode.parentNode; @@ -1076,7 +1076,7 @@ }); }); } - }); + }).inputNode.accept='image/jpeg,image/png'; deletepic=ui.create.div('.menubutton.deletebutton','删除图片',node,function(){ if(confirm('确定删除自定义图片?(此操作不可撤销)')){ game.deleteDB('image','card_style'); @@ -1200,14 +1200,14 @@ }); }); } - }); + }).inputNode.accept='image/jpeg,image/png'; ui.create.filediv('.menubutton.deletebutton.addbutton','添加翻转图片',node,function(file){ if(file){ game.putDB('image','cardback_style2',file,function(){ node.classList.add('hideadd'); }); } - }); + }).inputNode.accept='image/jpeg,image/png'; deletepic=ui.create.div('.menubutton.deletebutton','删除图片',node,function(){ if(confirm('确定删除自定义图片?(此操作不可撤销)')){ game.deleteDB('image','cardback_style'); @@ -1351,7 +1351,7 @@ }); }); } - }); + }).inputNode.accept='image/jpeg,image/png'; deletepic=ui.create.div('.menubutton.deletebutton','删除图片',node,function(){ if(confirm('确定删除自定义图片?(此操作不可撤销)')){ game.deleteDB('image','hp_style1'); @@ -1530,7 +1530,7 @@ }); }); } - }); + }).inputNode.accept='image/jpeg,image/png'; deletepic=ui.create.div('.menubutton.deletebutton','删除图片',node,function(){ if(confirm('确定删除自定义图片?(此操作不可撤销)')){ game.deleteDB('image','player_style'); @@ -1655,7 +1655,7 @@ }); }); } - }); + }).inputNode.accept='image/jpeg,image/png'; deletepic=ui.create.div('.menubutton.deletebutton','删除图片',node,function(){ if(confirm('确定删除自定义图片?(此操作不可撤销)')){ game.deleteDB('image','border_style'); @@ -1826,7 +1826,7 @@ }); }); } - }); + }).inputNode.accept='image/jpeg,image/png'; deletepic=ui.create.div('.menubutton.deletebutton','删除图片',node,function(){ if(confirm('确定删除自定义图片?(此操作不可撤销)')){ game.deleteDB('image','control_style'); @@ -1949,7 +1949,7 @@ }); }); } - }); + }).inputNode.accept='image/jpeg,image/png'; deletepic=ui.create.div('.menubutton.deletebutton','删除图片',node,function(){ if(confirm('确定删除自定义图片?(此操作不可撤销)')){ game.deleteDB('image','menu_style'); @@ -26497,6 +26497,7 @@ func.call(this,this.files[0],e); }; div.appendChild(input); + div.inputNode=input; return div; }, node:function(){