mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 23:52:02 +08:00
fix unit tests
This commit is contained in:
parent
63cbe8dd17
commit
5a7e78f0fc
|
@ -10,7 +10,7 @@ Discourse.SiteContentType = Discourse.Model.extend({});
|
|||
|
||||
Discourse.SiteContentType.reopenClass({
|
||||
findAll: function() {
|
||||
promise = new Em.Deferred();
|
||||
var promise = new Em.Deferred();
|
||||
Discourse.ajax("/admin/site_content_types").then(function(data) {
|
||||
var contentTypes = Em.A();
|
||||
data.forEach(function (ct) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user