]> git.nbdom.net Git - nb.git/commitdiff
etc/profile
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 18 Jan 2018 02:42:52 +0000 (02:42 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 18 Jan 2018 02:42:52 +0000 (02:42 +0000)
etc/profile
www/dbq/html/default.js

index e4aa8e699a17b7d14ee31f65b695a9d22c51678a..3c083c252bddebac8bb7f750200d18bb84c12670 100755 (executable)
@@ -14,7 +14,7 @@
 #--------------------------------------------------------------------------------
 [ "$1" = "--nb-debug" ] && export NB_DEBUG="yes" && shift
 [ "$1" = "--nb-no-repos" ] && export NB_NO_REPOS="yes" && shift
-[ "$NB_DEBUG" = "yes" ] || return 0
+#[ "$NB_DEBUG" = "yes" ] || return 0
 nb_debug() {
        [ -n "$NB_DEBUG" -a "$NB_DEBUG" = "yes" ] || return 0
        echo "DEBUG: $*" 1>&2
index 62a03c8135572a61145f88741a72e38f8c75915b..351d694eb623abbe5a2a58b3335837c110f20eab 100644 (file)
@@ -138,10 +138,10 @@ document.addEventListener("DOMContentLoaded", function() {
                //if (base == '') base = '/';
                var url = base + (base == '' ? '/ls' : '') + '.json';
                console.log(url);
-               var id = e.className == 'db' ? 'id' : 'name';
+               var fields = e.className == 'db' ? ['id','id'] : ['name','name'];
                dbqGet(url,function(o){
                        console.log(window._dbq['param.'+e.className]);
-                       var s = o.select(id,id, window._dbq['param.'+e.className]);
+                       var s = o.select(fields[0],fields[1], window._dbq['param.'+e.className]);
                        s.onchange = function() {
                                window.location = base + '/' + this.value + ext;
                                //console.log(base + '/' + this.value + ext);