web: a non-null "add" or "edit" query parameter shows the forms
This commit is contained in:
parent
357c0984fb
commit
b4f615b62a
@ -62,6 +62,7 @@ mkYesod "HledgerWebApp" [$parseRoutes|
|
||||
style_css = StaticRoute ["style.css"]
|
||||
hledger_js = StaticRoute ["hledger.js"]
|
||||
jquery_js = StaticRoute ["jquery.js"]
|
||||
jquery_url_js = StaticRoute ["jquery.url.js"]
|
||||
dhtmlxcommon_js = StaticRoute ["dhtmlxcommon.js"]
|
||||
dhtmlxcombo_js = StaticRoute ["dhtmlxcombo.js"]
|
||||
|
||||
@ -752,6 +753,7 @@ pageLayout td@TD{title=title, msg=msg} content = [$hamlet|
|
||||
%title $title$
|
||||
%meta!http-equiv=Content-Type!content=$metacontent$
|
||||
%script!type=text/javascript!src=@StaticR.jquery_js@
|
||||
%script!type=text/javascript!src=@StaticR.jquery_url_js@
|
||||
%script!type=text/javascript!src=@StaticR.dhtmlxcommon_js@
|
||||
%script!type=text/javascript!src=@StaticR.dhtmlxcombo_js@
|
||||
%script!type=text/javascript!src=@StaticR.hledger_js@
|
||||
|
||||
@ -3,6 +3,9 @@
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
/* maybe show forms */
|
||||
if ($.url.param('add')) addformToggle();
|
||||
else if ($.url.param('edit')) editformToggle();
|
||||
|
||||
});
|
||||
|
||||
|
||||
@ -26,6 +26,7 @@ data-files:
|
||||
web/static/style.css
|
||||
web/static/hledger.js
|
||||
web/static/jquery.js
|
||||
web/static/jquery.url.js
|
||||
web/static/dhtmlxcommon.js
|
||||
web/static/dhtmlxcombo.js
|
||||
web/static/images/combo_select.gif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user