Skip to content

Instantly share code, notes, and snippets.

@nul800sebastiaan
Created September 4, 2012 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nul800sebastiaan/3624335 to your computer and use it in GitHub Desktop.
Save nul800sebastiaan/3624335 to your computer and use it in GitHub Desktop.
Hack to click the node that was just synced
UmbClientMgr.mainTree().syncTree(nodePath, true);
var id = nodePath.split(',').reverse()[0];
setTimeout(function() {
jQuery('li#' + id, top.document).trigger('click');
},500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment