Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap 3.2.0: register js needed for some components #166

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/stdlib/themes/bootstrap/core/core.opa
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ Bootstrap = {{
{some=url} -> Resource.register_external_css(url)
{none} -> void

@private
import_bs_js(name:string) =
match Map.get(name, uri_bs)
{some=url} -> Resource.register_external_js(url)
{none} -> void

@private
fallback_url(v:string) =
if String.le(v, "1.4.0") then
Expand All @@ -142,6 +148,8 @@ Bootstrap = {{
import_responsive_css(v:string) = // responsive only
if String.lt(v, "3.0.0") then
import_bs("{bs_resources_path}/{v}/css/bootstrap-responsive.min.css")
else
import_bs_js("{bs_resources_path}/{v}/js/bootstrap.min.js")

@package
import_icons(v:string) = // icons only
Expand Down