diff --git a/hledger-web/Foundation.hs b/hledger-web/Foundation.hs index 80f4bb86f..e79fcaaf7 100644 --- a/hledger-web/Foundation.hs +++ b/hledger-web/Foundation.hs @@ -108,8 +108,8 @@ instance Yesod App where addScript $ StaticR jquery_url_js addScript $ StaticR jquery_flot_js toWidget [hamlet| \ |] - addScript $ StaticR dhtmlxcommon_js - addScript $ StaticR dhtmlxcombo_js + addScript $ StaticR select2_min_js + addStylesheet $ StaticR select2_css addStylesheet $ StaticR style_css addScript $ StaticR hledger_js $(widgetFile "default-layout") diff --git a/hledger-web/Handler/Common.hs b/hledger-web/Handler/Common.hs index 43533a200..e8f9e2f21 100644 --- a/hledger-web/Handler/Common.hs +++ b/hledger-web/Handler/Common.hs @@ -16,6 +16,7 @@ import Text.Blaze (preEscapedString) import Text.Blaze.Internal (preEscapedString) #endif import Text.Printf +import Text.JSON import Hledger.Utils import Hledger.Data @@ -114,19 +115,27 @@ addform :: Text -> ViewData -> HtmlUrl AppRoute addform staticRootUrl vd@VD{..} = [hamlet|