浏览代码

[metastore] Knockoutify drop table modal

Johan Ahlen 10 年之前
父节点
当前提交
b5899d0a77
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      apps/metastore/src/metastore/templates/metastore.mako

+ 2 - 3
apps/metastore/src/metastore/templates/metastore.mako

@@ -631,6 +631,7 @@ ${ assist.assistPanel() }
       <h3>${_('Drop Table')}</h3>
     </div>
     <div class="modal-body">
+      <a data-bind="click: function () { console.log($data) }">Click me</a>
       <div id="dropTableMessage">
       </div>
     </div>
@@ -639,9 +640,7 @@ ${ assist.assistPanel() }
       <input type="submit" class="btn btn-danger" value="${_('Yes, drop this table')}"/>
     </div>
     <div class="hide">
-      <select name="table_selection">
-##         <option value="${ table.name }" selected>${ table.name }</option>
-      </select>
+      <input type="hidden" name="table_selection" data-bind="value: database().table().name" />
     </div>
   </form>
 </div>