Skip to content
Browse files

autoload Urban.Admin thing

  • Loading branch information...
1 parent 39a0f41 commit 5c7c666e375876247a63acac0ab80f046a14d2bc Aaron Peckham committed Apr 13, 2012
Showing with 6 additions and 0 deletions.
  1. +2 −0 SpecRunner.html
  2. +4 −0 widgets.js
View
2 SpecRunner.html
@@ -9,6 +9,8 @@
<!-- include source files here... -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js"></script>
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
+ <script type="text/javascript">$j = jQuery.noConflict();</script>
<script type="text/javascript" src="widgets.js"></script>
<!-- include spec files here... -->
View
4 widgets.js
@@ -10,6 +10,10 @@ Urban.Admin = Class.create({
}
});
+$j(function() {
+ new Urban.Admin($("admin-element"));
+});
+
Urban.Admin.View = Class.create({
initialize: function(element) {
this.element = element;

0 comments on commit 5c7c666

Please sign in to comment.
Something went wrong with that request. Please try again.