Skip to content

Commit

Permalink
autoload Urban.Admin thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Peckham committed Apr 13, 2012
1 parent 39a0f41 commit 5c7c666
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SpecRunner.html
Expand Up @@ -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... -->
Expand Down
4 changes: 4 additions & 0 deletions widgets.js
Expand Up @@ -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;
Expand Down

0 comments on commit 5c7c666

Please sign in to comment.