diff options
author | 2012-07-26 23:55:51 -0400 | |
---|---|---|
committer | 2012-07-26 23:55:51 -0400 | |
commit | 1983ca2852461ca2082504dd22de07638030665b (patch) | |
tree | 93d830c89bcb6c53903357e2c9c6525a97a9def7 /Assistant/Threads/WebApp.hs | |
parent | ff4ab6d6da60ecf9081f743fc13b5785ebe79d12 (diff) |
added jquery to static site
Had to switch to toWaiAppPlain to avoid a seeming bug in toWaiApp;
chromium only received a partial copy of jquery. Always the same length
each time, which makes me think it's a bug in the compression, although
a bug in the autohead middleware is also a possibility.
Anyway, there's little need for compression for a local webapp. Not wasting
time compressing things is probably a net gain.
Similarly, I've not worried about minifying this yet. Although that would
avoid bloating the git-annex binary quite so much.
Diffstat (limited to 'Assistant/Threads/WebApp.hs')
-rw-r--r-- | Assistant/Threads/WebApp.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Assistant/Threads/WebApp.hs b/Assistant/Threads/WebApp.hs index addb49f79..f82a1fb6b 100644 --- a/Assistant/Threads/WebApp.hs +++ b/Assistant/Threads/WebApp.hs @@ -88,7 +88,7 @@ autoUpdate poll gethtml home ms_delay ms_startdelay = do {- Use long polling to update the status display. -} let delay = show ms_delay let startdelay = show ms_startdelay - addScriptRemote "http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" + addScript $ StaticR jquery_full_js $(widgetFile "longpolling") where ms_to_seconds :: Int -> Int @@ -132,7 +132,7 @@ getConfigR = defaultLayout $ do webAppThread :: ThreadState -> DaemonStatusHandle -> IO () webAppThread st dstatus = do webapp <- mkWebApp st dstatus - app <- toWaiApp webapp + app <- toWaiAppPlain webapp app' <- ifM debugEnabled ( return $ httpDebugLogger app , return app |