jenkins-bot has submitted this change and it was merged.

Change subject: Unbreak javascript for forms not including category/categories
......................................................................


Unbreak javascript for forms not including category/categories

Change-Id: Ice9e44847e6730ba0ae747e555c8ef30d13046dd
---
M libs/ext.dynatree.js
1 file changed, 12 insertions(+), 11 deletions(-)

Approvals:
  Yaron Koren: Checked; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/libs/ext.dynatree.js b/libs/ext.dynatree.js
index 228cbbc..8ffc821 100644
--- a/libs/ext.dynatree.js
+++ b/libs/ext.dynatree.js
@@ -38,15 +38,16 @@
                                    dtnode.isSelected()).addClass("hidden");
                }
            });
-    });
-    //Update real checkboxes according to selections
-       $.map(nodeSelection.dynatree("getTree").getSelectedNodes(),
-               function (dtnode) {
-                       $("#chb-" + dtnode.data.key).attr("checked", true);
-                       dtnode.activate();
-               });
-       var activeNode = nodeSelection.dynatree("getTree").getActiveNode();
-       if (activeNode !== null) {
-               activeNode.deactivate()
-       }
+           //Update real checkboxes according to selections
+               $.map(node.dynatree("getTree").getSelectedNodes(),
+                       function (dtnode) {
+                               $("#chb-" + dtnode.data.key).attr("checked", 
true);
+                               dtnode.activate();
+                       });
+               var activeNode = node.dynatree("getTree").getActiveNode();
+               if (activeNode !== null) {
+                       activeNode.deactivate()
+               }
+       });
 });
+

-- 
To view, visit https://gerrit.wikimedia.org/r/86817
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ice9e44847e6730ba0ae747e555c8ef30d13046dd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticForms
Gerrit-Branch: master
Gerrit-Owner: MathiasLidal <mathiasli...@gmail.com>
Gerrit-Reviewer: Yaron Koren <yaro...@gmail.com>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to