r !== true) {
                        mid = "treeNodeMenu";
                    }
				}
			} else {
				if (node.dir === true) {
					mid = 'treeDirMenu';
				}
			}
			$('#' + mid).menu('show',{
				left: e.pageX,
				top: e.pageY
			});
		}

		function saveValue() {
			var node = $('#etree').tree('getSelected');
			$.ajax({
				type: 'PUT',
				timeout: timeout,
				url:  serverBase + '/put',
				data: {'key': node.path, 'value':editor.getValue()},
				async: true,
				dataType: 'json',
				success: funct