From d1a3c80a9d395964098f49f66ae617b1f5b9f407 Mon Sep 17 00:00:00 2001 From: jean Date: Thu, 13 Sep 2012 09:27:09 +1200 Subject: [PATCH] FIX 7862 Strict equality check on previously selected item in the TreeDropdownField --- javascript/TreeDropdownField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/TreeDropdownField.js b/javascript/TreeDropdownField.js index d303b894e..08adaa75d 100644 --- a/javascript/TreeDropdownField.js +++ b/javascript/TreeDropdownField.js @@ -161,7 +161,7 @@ .jstree(self.getTreeConfig()) .bind('select_node.jstree', function(e, data) { var node = data.rslt.obj, id = $(node).data('id'); - if(!firstLoad && !self.getValue() == id) { + if(!firstLoad && !self.getValue() === id) { // Value is already selected, unselect it (for lack of a better UI to do this) self.data('metadata', null); self.setTitle(null);