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 @@
- - + +