From 4a75cb262a25786f649b4ed8548f6aeb1c92adc5 Mon Sep 17 00:00:00 2001 From: tonkia Date: Mon, 10 Dec 2018 17:33:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/createScheme.js | 11 ++++++++++- views/createScheme.html | 10 +++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/static/js/createScheme.js b/static/js/createScheme.js index 0ce6fc3..8be1d5b 100644 --- a/static/js/createScheme.js +++ b/static/js/createScheme.js @@ -208,7 +208,9 @@ function initEvent() { var component = { name: componentName, models: [], - modelIndex: -1 + modelIndex: -1, + textures: [], + textureIndex: -1 } data.components.push(component); freshComponentItem(); @@ -239,9 +241,16 @@ function initEvent() { //todo 还需要发送ajax清空模型文件 } } + }, { + icon: 'times', + text: '取消', }] }).show(); }); + + $('#textureManagerment').click(function () { + $('#textureManagermentModal').modal('show'); + }); } function addModel(url, callBack) { diff --git a/views/createScheme.html b/views/createScheme.html index 73dda3c..27ce0b5 100644 --- a/views/createScheme.html +++ b/views/createScheme.html @@ -72,8 +72,8 @@
- - + +