Parcourir la source

Fix ie remove error

Denis K il y a 8 ans
Parent
commit
0851ee7ae6
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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();
         }
     },