Update old dynatree usage to 1.0 standards, clean up some of the extra-chatty debugging and an invalid ajaxComplete attachment that we don't need.

This commit is contained in:
Dannon Baker
2015-10-06 10:34:12 -04:00
parent bad9cce30f
commit 54ee8cfdc0
3 changed files with 3 additions and 16 deletions
@@ -19,8 +19,7 @@ ${h.css( "dynatree_skin/ui.dynatree" )}
// --- Initialize sample trees
$("#tree").dynatree({
title: "${scp_configs['data_location']}",
rootVisible: true,
minExpandLevel: 0, // 1: root node is not collapsible
minExpandLevel: 1, // 1: root node is not collapsible
persist: false,
checkbox: true,
selectMode: 3,
@@ -3,20 +3,14 @@
<%def name="browse_files(title_text, directory_path)">
<script type="text/javascript">
$(function(){
$("#tree").ajaxComplete(function(event, XMLHttpRequest, ajaxOptions) {
_log("debug", "ajaxComplete: %o", this); // dom element listening
});
// --- Initialize sample trees
$("#tree").dynatree({
title: "${title_text|h}",
rootVisible: true,
minExpandLevel: 0, // 1: root node is not collapsible
minExpandLevel: 1,
persist: false,
checkbox: true,
selectMode: 3,
onPostInit: function(isReloading, isError) {
//alert("reloading: "+isReloading+", error:"+isError);
logMsg("onPostInit(%o, %o) - %o", isReloading, isError, this);
// Re-fire onActivate, so the text is updated
this.reactivate();
},
@@ -2,20 +2,14 @@
<script type="text/javascript">
$(function(){
$("#tree").ajaxComplete(function(event, XMLHttpRequest, ajaxOptions) {
_log("debug", "ajaxComplete: %o", this); // dom element listening
});
// --- Initialize sample trees
$("#tree").dynatree({
title: "${repository.name}",
rootVisible: true,
minExpandLevel: 0, // 1: root node is not collapsible
minExpandLevel: 1,
persist: false,
checkbox: true,
selectMode: 3,
onPostInit: function(isReloading, isError) {
//alert("reloading: "+isReloading+", error:"+isError);
logMsg("onPostInit(%o, %o) - %o", isReloading, isError, this);
// Re-fire onActivate, so the text is updated
this.reactivate();
},