mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Calls to Discourse.ajax no longer need getURL -- will be done automatically.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
Handles routes related to users in the admin section.
|
||||
|
||||
@class AdminUserRoute
|
||||
@class AdminUserRoute
|
||||
@extends Discourse.Route
|
||||
@namespace Discourse
|
||||
@module Discourse
|
||||
@@ -11,6 +11,10 @@ Discourse.AdminUserRoute = Discourse.Route.extend({
|
||||
return Discourse.AdminUser.find(params.username);
|
||||
},
|
||||
|
||||
serialize: function(params) {
|
||||
return { username: Em.get(params, 'username').toLowerCase() };
|
||||
},
|
||||
|
||||
renderTemplate: function() {
|
||||
this.render('admin/templates/user', {into: 'admin/templates/admin'});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user