implement extension point for share menu

This commit is contained in:
ansuz
2018-01-10 11:49:16 +01:00
committed by Caleb James DeLisle
parent 5346afe51f
commit ca3697ae3a
2 changed files with 11 additions and 1 deletions

View File

@@ -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,