implement extension point for share menu
This commit is contained in:
committed by
Caleb James DeLisle
parent
5346afe51f
commit
ca3697ae3a
@@ -8,7 +8,8 @@ define([
|
||||
'/common/common-feedback.js',
|
||||
'/customize/messages.js',
|
||||
'/common/clipboard.js',
|
||||
], function ($, Config, ApiConfig, UIElements, UI, Hash, Feedback, Messages, Clipboard) {
|
||||
'/common/hyperscript.js',
|
||||
], function ($, Config, ApiConfig, UIElements, UI, Hash, Feedback, Messages, Clipboard, h) {
|
||||
var Common;
|
||||
|
||||
var Bar = {
|
||||
@@ -496,6 +497,9 @@ define([
|
||||
content: '<span class="fa fa-eye"></span> ' + Messages.getEmbedCode
|
||||
});
|
||||
}
|
||||
if (typeof(Config.customizeShareOptions) === 'function') {
|
||||
Config.customizeShareOptions(hashes, options);
|
||||
}
|
||||
var dropdownConfigShare = {
|
||||
text: $('<div>').append($shareIcon).html(),
|
||||
options: options,
|
||||
|
||||
Reference in New Issue
Block a user