Breaking out javascript into js files instead of inline

This commit is contained in:
Jason Denney
2013-01-06 22:41:59 -05:00
parent c1dbd2b8ec
commit cee461ebd9
14 changed files with 98 additions and 99 deletions
+1 -9
View File
@@ -15,15 +15,7 @@ class UserStats < Netzke::Base
js_configure do |c|
c.body_padding = 15
c.title = "User Stats"
#c.html = body_content()
c.update_stats = <<-JS
function(){
// Call endpoint
this.serverUpdate({}, function(){
//success callback
}, this);
}
JS
c.mixin :user_stats
end
endpoint :server_update do |params, this|