瀏覽代碼

[search] Missing remove call on widget

Deleting a widget was not removing it from the model
Romain Rigaux 11 年之前
父節點
當前提交
a0a8370

+ 0 - 1
apps/search/src/search/templates/search.mako

@@ -1224,7 +1224,6 @@ $(document).ready(function () {
       addFacetDemiModalFieldCancel();
     }
   });
-
 });
 
   function showShareModal() {

+ 1 - 1
desktop/core/src/desktop/templates/common_dashboard.mako

@@ -163,7 +163,7 @@
         <span data-bind="editable: name, editableOptions: {enabled: $root.isEditing(), placement: 'right'}"></span>
       <!-- /ko -->
       <div class="inline pull-right" data-bind="visible: $root.isEditing">
-        <a href="javascript:void(0)" data-bind="click: function(){remove($parent, this)}"><i class="fa fa-times"></i></a>
+        <a href="javascript:void(0)" data-bind="click: $root.removeWidget"><i class="fa fa-times"></i></a>
       </div>
     </h2>
     <div class="card-body" style="padding: 5px;">