Enable AppConfig in pad2
This commit is contained in:
parent
4089803785
commit
aa9e0d3cd3
@ -8,8 +8,10 @@ define([
|
|||||||
'/common/sframe-common-history.js',
|
'/common/sframe-common-history.js',
|
||||||
'/common/metadata-manager.js',
|
'/common/metadata-manager.js',
|
||||||
|
|
||||||
|
'/customize/application_config.js',
|
||||||
'/common/cryptpad-common.js'
|
'/common/cryptpad-common.js'
|
||||||
], function (nThen, Messages, CpNfInner, SFrameChannel, Title, UI, History, MetadataMgr, Cryptpad) {
|
], function (nThen, Messages, CpNfInner, SFrameChannel, Title, UI, History, MetadataMgr,
|
||||||
|
AppConfig, Cryptpad) {
|
||||||
|
|
||||||
// Chainpad Netflux Inner
|
// Chainpad Netflux Inner
|
||||||
var funcs = {};
|
var funcs = {};
|
||||||
@ -138,7 +140,7 @@ define([
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'template':
|
case 'template':
|
||||||
//if (!AppConfig.enableTemplates) { return; }
|
if (!AppConfig.enableTemplates) { return; }
|
||||||
button = $('<button>', {
|
button = $('<button>', {
|
||||||
title: Messages.saveTemplateButton,
|
title: Messages.saveTemplateButton,
|
||||||
}).append($('<span>', {'class':'fa fa-bookmark', style: 'font:'+size+' FontAwesome'}));
|
}).append($('<span>', {'class':'fa fa-bookmark', style: 'font:'+size+' FontAwesome'}));
|
||||||
@ -214,10 +216,10 @@ define([
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'history':
|
case 'history':
|
||||||
/*if (!AppConfig.enableHistory) {
|
if (!AppConfig.enableHistory) {
|
||||||
button = $('<span>');
|
button = $('<span>');
|
||||||
break;
|
break;
|
||||||
}*/
|
}
|
||||||
button = $('<button>', {
|
button = $('<button>', {
|
||||||
title: Messages.historyButton,
|
title: Messages.historyButton,
|
||||||
'class': "fa fa-history history",
|
'class': "fa fa-history history",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user