Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageactionscript3
applyTemplate: function(template, tmpClass) {

	if (!canvas.core.isEmpty(this.parentElem)) {
		$(this.parentElem).append(template); 
	} 
	$(this.parentElem).find('.workspaceIconBlock').on('click', function(e) {
		var workspaceID = $(this).attr('data-itemid');
		canvas.workspace.metadata.getWorkspaceManager().getContainer().switchWorkspace(workspaceID);
}); 

...