Merge branch 'master' of github.com:xwiki-labs/cryptpad

pull/1/head
ansuz 6 years ago
commit 0dee1143ba

@ -701,7 +701,10 @@ define([
},
keys: [13]
}];
var frameLink = UI.dialog.customModal(link, {buttons: linkButtons});
var frameLink = UI.dialog.customModal(link, {
buttons: linkButtons,
onClose: config.onClose,
});
// Embed tab
var embed = h('div.cp-share-modal', [
@ -728,7 +731,10 @@ define([
},
keys: [13]
}];
var frameEmbed = UI.dialog.customModal(embed, { buttons: embedButtons});
var frameEmbed = UI.dialog.customModal(embed, {
buttons: embedButtons,
onClose: config.onClose,
});
// Create modal
var tabs = [{

@ -79,7 +79,8 @@ define([
return {
updateTitle: exp.updateTitle,
suggestName: suggestTitle,
defaultName: exp.defaultTitle
defaultName: exp.defaultTitle,
getTitle: exp.getTitle
};
};

@ -534,8 +534,11 @@ MessengerUI, Messages) {
hidden: true
});
$shareBlock.click(function () {
var title = (config.title && config.title.getTitle && config.title.getTitle())
|| (config.title && config.title.defaultName)
|| "";
Common.getSframeChannel().event('EV_SHARE_OPEN', {
title: Common.getMetadataMgr().getMetadata().title
title: title
});
});
@ -559,7 +562,10 @@ MessengerUI, Messages) {
file: true
});
$shareBlock.click(function () {
var title = (config.title && config.title.getTitle && config.title.getTitle())
|| "";
Common.getSframeChannel().event('EV_SHARE_OPEN', {
title: title,
file: true
});
});
@ -724,7 +730,7 @@ MessengerUI, Messages) {
};
var createPageTitle = function (toolbar, config) {
if (config.title || !config.pageTitle) { return; }
if (!config.pageTitle) { return; }
var $titleContainer = $('<span>', {
'class': TITLE_CLS
}).appendTo(toolbar.$top);

@ -123,7 +123,10 @@ define([
common.setPadAttribute('fileType', metadata.type);
}
toolbar.addElement(['pageTitle'], {pageTitle: title});
toolbar.addElement(['pageTitle'], {
pageTitle: title,
title: Title.getTitleConfig(),
});
toolbar.$rightside.append(common.createButton('forget', true));
toolbar.$rightside.append(common.createButton('properties', true));
if (common.isLoggedIn()) {

Loading…
Cancel
Save