Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
issue #14 : fallback for jquery throttle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
benzonico committed May 20, 2012
1 parent dc77819 commit 6f300be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/views/main.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
if (window.jQuery === undefined) {
//assume if we did not load jQuery then CDN is down or we are offline so we serve the files
document.write(unescape("%3Cscript src='@routes.Assets.at("javascripts/jquery-1.7.1.min.js")' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript src='@routes.Assets.at("javascripts/jquery.ba-throttle-debounce.min.js")' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript src='@routes.Assets.at("javascripts/bootstrap.min.js")' type='text/javascript'%3E%3C/script%3E"));
}
</script>
Expand Down Expand Up @@ -41,6 +40,11 @@
}
</script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-throttle-debounce/1.1/jquery.ba-throttle-debounce.min.js" type="text/javascript"></script>
<script type="text/javascript">
if (window.jQuery.throttle === undefined) {
document.write(unescape("%3Cscript src='@routes.Assets.at("javascripts/jquery.ba-throttle-debounce.min.js")' type='text/javascript'%3E%3C/script%3E"));
}
</script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.0.3/bootstrap.min.js" type="text/javascript"></script>
<script src="@routes.Assets.at("javascripts/robotagram.js")" type = "text/javascript"></script>
</head>
Expand Down

0 comments on commit 6f300be

Please sign in to comment.