You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2019/06/12 11:06:34 UTC

[kibble] branch master updated (9a1ee2d -> c703168)

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git.


    from 9a1ee2d  regen JS
     new 1436d49  allow 0 as valid value here, don't remove if set to this
     new c703168  regen JS

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 ui/js/coffee/widget.coffee | 4 ++--
 ui/js/kibble.v1.js         | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)


[kibble] 01/02: allow 0 as valid value here, don't remove if set to this

Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git

commit 1436d49abc70c087e1bf7ba93086cc177f6950cf
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Wed Jun 12 13:06:20 2019 +0200

    allow 0 as valid value here, don't remove if set to this
---
 ui/js/coffee/widget.coffee | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/js/coffee/widget.coffee b/ui/js/coffee/widget.coffee
index c091c10..8e67d55 100644
--- a/ui/js/coffee/widget.coffee
+++ b/ui/js/coffee/widget.coffee
@@ -89,7 +89,7 @@ updateWidgets = (type, target, eargs) ->
         globArgs[k] = v
         g = []
         for k,v of globArgs
-                if k and v
+                if k and (typeof v != 'undefined' and v != null)
                     g.push(k + '=' + v)
         gargs = "?" + g.join("&")
         wloc = window.location.pathname + gargs
@@ -106,7 +106,7 @@ updateWidgets = (type, target, eargs) ->
                 widget.args.eargs = widget.args.eargs and widget.args.eargs or {}
                 for k, v of eargs
                     widget.args.eargs[k] = v
-                    if not v
+                    if (typeof v == 'undefined' or v == null)
                         delete widget.args.eargs[k]
             switch widget.args.type
                 when 'donut' then widget.load(donut)


[kibble] 02/02: regen JS

Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git

commit c703168441eb93c29c8ea0a89d3c08c4bd4a8925
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Wed Jun 12 13:06:24 2019 +0200

    regen JS
---
 ui/js/kibble.v1.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/js/kibble.v1.js b/ui/js/kibble.v1.js
index 3106b92..42f02b3 100644
--- a/ui/js/kibble.v1.js
+++ b/ui/js/kibble.v1.js
@@ -5325,7 +5325,7 @@ updateWidgets = function(type, target, eargs) {
     g = [];
     for (k in globArgs) {
       v = globArgs[k];
-      if (k && v) {
+      if (k && (typeof v !== 'undefined' && v !== null)) {
         g.push(k + '=' + v);
       }
     }
@@ -5349,7 +5349,7 @@ updateWidgets = function(type, target, eargs) {
         for (k in eargs) {
           v = eargs[k];
           widget.args.eargs[k] = v;
-          if (!v) {
+          if (typeof v === 'undefined' || v === null) {
             delete widget.args.eargs[k];
           }
         }