Skip to content

Commit

Permalink
added raw value to edit callback - close #2444
Browse files Browse the repository at this point in the history
  • Loading branch information
vakata committed Dec 18, 2020
1 parent 008ed6d commit 2a6bb30
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/jstree.js
Original file line number Diff line number Diff line change
Expand Up @@ -4507,7 +4507,7 @@
* @name edit(obj [, default_text, callback])
* @param {mixed} obj
* @param {String} default_text the text to populate the input with (if omitted or set to a non-string value the node's text value is used)
* @param {Function} callback a function to be called once the text box is blurred, it is called in the instance's scope and receives the node, a status parameter (true if the rename is successful, false otherwise) and a boolean indicating if the user cancelled the edit. You can access the node's title using .text
* @param {Function} callback a function to be called once the text box is blurred, it is called in the instance's scope and receives the node, a status parameter (true if the rename is successful, false otherwise), a boolean indicating if the user cancelled the edit and the original unescaped value provided by the user. You can also access the node's title using .text
*/
edit : function (obj, default_text, callback) {
var rtl, w, a, s, t, h1, h2, fn, tmp, cancel = false;
Expand Down Expand Up @@ -4576,7 +4576,7 @@
}
}, this), 0);
if(callback) {
callback.call(this, tmp, nv, cancel);
callback.call(this, tmp, nv, cancel, v);
}
h2 = null;
}, this),
Expand Down
Loading

0 comments on commit 2a6bb30

Please sign in to comment.