瀏覽代碼

Fix ie remove error

Denis K 8 年之前
父節點
當前提交
0851ee7ae6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      jet/static/jet/js/src/layout-updaters/actions.js

+ 2 - 2
jet/static/jet/js/src/layout-updaters/actions.js

@@ -12,9 +12,9 @@ ActionsUpdater.prototype = {
             return;
         }
 
-        var $label = $input[0].previousSibling;
+        var $label = $($input[0].previousSibling);
 
-        if ($label.nodeType == 3) {
+        if ($label.get(0).nodeType == 3) {
             $label.remove();
         }
     },