|
|
@ -526,6 +526,7 @@ define([
|
|
|
|
var button;
|
|
|
|
var button;
|
|
|
|
var sframeChan = common.getSframeChannel();
|
|
|
|
var sframeChan = common.getSframeChannel();
|
|
|
|
var appType = (common.getMetadataMgr().getMetadata().type || 'pad').toUpperCase();
|
|
|
|
var appType = (common.getMetadataMgr().getMetadata().type || 'pad').toUpperCase();
|
|
|
|
|
|
|
|
data = data || {};
|
|
|
|
switch (type) {
|
|
|
|
switch (type) {
|
|
|
|
case 'export':
|
|
|
|
case 'export':
|
|
|
|
button = $('<button>', {
|
|
|
|
button = $('<button>', {
|
|
|
@ -835,8 +836,8 @@ define([
|
|
|
|
button = $(h('button.cp-toolbar-tools', {
|
|
|
|
button = $(h('button.cp-toolbar-tools', {
|
|
|
|
//title: data.title || '', // TODO display if the label text is collapsed
|
|
|
|
//title: data.title || '', // TODO display if the label text is collapsed
|
|
|
|
}, [
|
|
|
|
}, [
|
|
|
|
h('i.fa.fa-wrench'),
|
|
|
|
h('i.fa.' + (data.icon || 'fa-wrench')),
|
|
|
|
h('span.cp-toolbar-name', Messages.toolbar_tools)
|
|
|
|
h('span.cp-toolbar-name', data.text || Messages.toolbar_tools)
|
|
|
|
])).click(common.prepareFeedback(type));
|
|
|
|
])).click(common.prepareFeedback(type));
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
window.setTimeout(function () {
|
|
|
|
window.setTimeout(function () {
|
|
|
@ -902,7 +903,6 @@ define([
|
|
|
|
button
|
|
|
|
button
|
|
|
|
.click(common.prepareFeedback(type))
|
|
|
|
.click(common.prepareFeedback(type))
|
|
|
|
.click(function () {
|
|
|
|
.click(function () {
|
|
|
|
data = data || {};
|
|
|
|
|
|
|
|
if (typeof(data.load) !== "function" || typeof(data.make) !== "function") {
|
|
|
|
if (typeof(data.load) !== "function" || typeof(data.make) !== "function") {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -910,7 +910,6 @@ define([
|
|
|
|
});
|
|
|
|
});
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
data = data || {};
|
|
|
|
|
|
|
|
var drawerCls = data.drawer === false ? '' : '.cp-toolbar-drawer-element';
|
|
|
|
var drawerCls = data.drawer === false ? '' : '.cp-toolbar-drawer-element';
|
|
|
|
var icon = data.icon || "fa-question";
|
|
|
|
var icon = data.icon || "fa-question";
|
|
|
|
button = $(h('button', {
|
|
|
|
button = $(h('button', {
|
|
|
|