update to newest json editor

Andrew Cantino 10 years ago
parent
commit
df6fcdce11
1 changed files with 2 additions and 1 deletions
  1. 2 1
      vendor/assets/javascripts/jquery.json-editor.js

+ 2 - 1
vendor/assets/javascripts/jquery.json-editor.js

@@ -1,3 +1,4 @@
1
+
1 2
 /*
2 3
   Copyright (c) 2014, Andrew Cantino
3 4
   Copyright (c) 2009, Andrew Cantino & Kyle Maxwell
@@ -528,7 +529,7 @@
528 529
           }
529 530
           innerbq.append($('<span class="colon">: </span>'));
530 531
           newElem = this.build(jsonvalue, innerbq, json, jsonkey, root);
531
-          if (newElem && newElem.text() === "??") {
532
+          if (!elem && newElem && newElem.text() === "??") {
532 533
             elem = newElem;
533 534
           }
534 535
           bq.append(innerbq);