mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
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:
@@ -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();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user