Permalink
Browse files

modal fix: should not include jQuery again, and register other js aft…

…er all.js
  • Loading branch information...
1 parent 04641b6 commit c345e9ef44c0e6338aafa53cd30c30ebc68452bc @Aqua-Ye Aqua-Ye committed Apr 28, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 modal_test.opa
View
@@ -39,14 +39,14 @@ testmodal() =
headers =
<>
<link rel="stylesheet" type="text/css" href="/css/bootstrap.css" />
- <script src="/js/jquery-1.7.1.min.js"/>
- <script src="/js/bootstrap-modal.js"/>
- <script src="/js/bootstrap-transition.js"/>
</>
Resource.full_page(
"foo", html, headers, {success}, []
)
+do Resource.register_external_js("/js/bootstrap-modal.js")
+do Resource.register_external_js("/js/bootstrap-transition.js")
+
server =
css_dir = Server.resource_map(@static_resource_directory("css"))
js_dir = Server.resource_map(@static_resource_directory("js"))

0 comments on commit c345e9e

Please sign in to comment.