Merge pull request #1448 from velesin/remove_redundant_presence
Remove duplicate mixing in of Discourse.Presence
This commit is contained in:
commit
13527a1df7
|
@ -6,7 +6,7 @@
|
|||
@namespace Discourse
|
||||
@module Discourse
|
||||
**/
|
||||
Discourse.AdminEmailIndexController = Discourse.Controller.extend(Discourse.Presence, {
|
||||
Discourse.AdminEmailIndexController = Discourse.Controller.extend({
|
||||
|
||||
/**
|
||||
Is the "send test email" button disabled?
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
@namespace Discourse
|
||||
@module Discourse
|
||||
**/
|
||||
Discourse.AdminEmailPreviewDigestController = Discourse.ObjectController.extend(Discourse.Presence, {
|
||||
Discourse.AdminEmailPreviewDigestController = Discourse.ObjectController.extend({
|
||||
|
||||
refresh: function() {
|
||||
var model = this.get('model');
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
module("Discourse.AdminEmailIndexController");
|
||||
|
||||
test("mixes in Discourse.Presence", function() {
|
||||
ok(Discourse.Presence.detect(Discourse.AdminEmailIndexController.create()));
|
||||
});
|
|
@ -0,0 +1,5 @@
|
|||
module("Discourse.AdminEmailPreviewDigestController");
|
||||
|
||||
test("mixes in Discourse.Presence", function() {
|
||||
ok(Discourse.Presence.detect(Discourse.AdminEmailPreviewDigestController.create()));
|
||||
});
|
Loading…
Reference in New Issue