diff options
author | Yorhel <git@yorhel.nl> | 2019-12-17 11:48:14 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-12-17 11:48:16 +0100 |
commit | e6f20ed931640c1b889ed0d514f4f3adad874c43 (patch) | |
tree | 98646f0affa5d83745d883b18e72cad63976c08c /elm | |
parent | f8864f4a6916d3bd703c7b59ff2ad1a4fa7fd301 (diff) |
ulist: Get rid of BETA warning, update menu and tab links
Decided to go with option presets (e.g. '?wishlist=1') rather than add
the full list of options to each link. Makes it easier to maintain and
keeps URLs for basic pages short.
As a result of that, I had to fix ColSelect.elm to not read the current
URL but instead get the URL passed by Perl. Fortunately, it looks like
the Erl package can deal with partial URLs (only the query string, in
this case) just fine.
Diffstat (limited to 'elm')
-rw-r--r-- | elm/ColSelect.elm | 6 | ||||
-rw-r--r-- | elm/ColSelect.js | 5 |
2 files changed, 3 insertions, 8 deletions
diff --git a/elm/ColSelect.elm b/elm/ColSelect.elm index 049cc369..93c9a093 100644 --- a/elm/ColSelect.elm +++ b/elm/ColSelect.elm @@ -3,13 +3,13 @@ -- -- ?c=column_id&c=modified&... -- --- Accepts a list of columns from Perl, e.g.: +-- Accepts a [ $current_url, [ list of columns ] ] from Perl, e.g.: -- --- [ +-- [ '?c=column_id', [ -- [ 'column_id', 'Column Label' ], -- [ 'modified', 'Date modified' ], -- ... --- ] +-- ] ] module ColSelect exposing (main) import Html exposing (..) diff --git a/elm/ColSelect.js b/elm/ColSelect.js deleted file mode 100644 index e6812fab..00000000 --- a/elm/ColSelect.js +++ /dev/null @@ -1,5 +0,0 @@ -var init = Elm.ColSelect.init; -Elm.ColSelect.init = function(opt) { - opt.flags = [ location.href, opt.flags ]; - return init(opt); -}; |