mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-15 16:11:37 -04:00
Breaking out javascript into js files instead of inline
This commit is contained in:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user