mirror of
https://github.com/discourse/discourse.git
synced 2025-09-10 21:01:33 +08:00
Add custom post icons to PluginAPI
This commit is contained in:
parent
9b8871d7dd
commit
f9722f8598
6 changed files with 74 additions and 81 deletions
|
@ -161,7 +161,9 @@ function methodMissing() {
|
|||
"and your plugin needs to be updated.");
|
||||
};
|
||||
|
||||
['reopen', 'registerButton'].forEach(function(m) { RemovedObject.prototype[m] = methodMissing; });
|
||||
Discourse.RemovedObject = RemovedObject;
|
||||
|
||||
['reopen', 'registerButton', 'on', 'off'].forEach(function(m) { RemovedObject.prototype[m] = methodMissing; });
|
||||
|
||||
['discourse/views/post', 'discourse/components/post-menu'].forEach(function(moduleName) {
|
||||
define(moduleName, [], function() { return new RemovedObject(moduleName); });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue