|
|
@ -1510,7 +1510,7 @@ define([
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'present':
|
|
|
|
case 'present':
|
|
|
|
button = $(h('button', {
|
|
|
|
button = $(h('button', {
|
|
|
|
title: Messages.presentButtonTitle, // XXX remove tippy?
|
|
|
|
//title: Messages.presentButtonTitle, // TODO display if the label text is collapsed
|
|
|
|
}, [
|
|
|
|
}, [
|
|
|
|
h('i.fa.fa-play-circle'),
|
|
|
|
h('i.fa.fa-play-circle'),
|
|
|
|
h('span.cp-toolbar-name', Messages.share_linkPresent)
|
|
|
|
h('span.cp-toolbar-name', Messages.share_linkPresent)
|
|
|
@ -1518,7 +1518,7 @@ define([
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'preview':
|
|
|
|
case 'preview':
|
|
|
|
button = $(h('button', {
|
|
|
|
button = $(h('button', {
|
|
|
|
title: Messages.previewButtonTitle, // XXX remove tippy?
|
|
|
|
//title: Messages.previewButtonTitle, // TODO display if the label text is collapsed
|
|
|
|
}, [
|
|
|
|
}, [
|
|
|
|
h('i.fa.fa-eye'),
|
|
|
|
h('i.fa.fa-eye'),
|
|
|
|
h('span.cp-toolbar-name', Messages.share_linkOpen)
|
|
|
|
h('span.cp-toolbar-name', Messages.share_linkOpen)
|
|
|
@ -1555,16 +1555,14 @@ define([
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'mediatag':
|
|
|
|
case 'mediatag':
|
|
|
|
Messages.toolbar_insert = "Insert"; // XXX
|
|
|
|
|
|
|
|
button = $(h('button.cp-toolbar-mediatag', {
|
|
|
|
button = $(h('button.cp-toolbar-mediatag', {
|
|
|
|
title: Messages.filePickerButton, // XXX remove tippy?
|
|
|
|
//title: Messages.filePickerButton, // TODO display if the label text is collapsed
|
|
|
|
}, [
|
|
|
|
}, [
|
|
|
|
h('i.fa.fa-picture-o'),
|
|
|
|
h('i.fa.fa-picture-o'),
|
|
|
|
h('span.cp-toolbar-name', Messages.toolbar_insert)
|
|
|
|
h('span.cp-toolbar-name', Messages.toolbar_insert)
|
|
|
|
])).click(common.prepareFeedback(type));
|
|
|
|
])).click(common.prepareFeedback(type));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'savetodrive':
|
|
|
|
case 'savetodrive':
|
|
|
|
Messages.toolbar_savetodrive = "Save as image"; // XXX
|
|
|
|
|
|
|
|
button = $(h('button.cp-toolbar-savetodrive', {
|
|
|
|
button = $(h('button.cp-toolbar-savetodrive', {
|
|
|
|
title: Messages.canvas_saveToDrive,
|
|
|
|
title: Messages.canvas_saveToDrive,
|
|
|
|
}, [
|
|
|
|
}, [
|
|
|
@ -1588,9 +1586,8 @@ define([
|
|
|
|
});
|
|
|
|
});
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 'toggle':
|
|
|
|
case 'toggle':
|
|
|
|
Messages.toolbar_tools = "Tools"; // XXX
|
|
|
|
|
|
|
|
button = $(h('button.cp-toolbar-tools', {
|
|
|
|
button = $(h('button.cp-toolbar-tools', {
|
|
|
|
title: data.title || '', // XXX remove tippy?
|
|
|
|
//title: data.title || '', // TODO display if the label text is collapsed
|
|
|
|
}, [
|
|
|
|
}, [
|
|
|
|
h('i.fa.fa-wrench'),
|
|
|
|
h('i.fa.fa-wrench'),
|
|
|
|
h('span.cp-toolbar-name', Messages.toolbar_tools)
|
|
|
|
h('span.cp-toolbar-name', Messages.toolbar_tools)
|
|
|
@ -1661,7 +1658,7 @@ define([
|
|
|
|
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', {
|
|
|
|
title: data.title || '', // XXX remove tippy?
|
|
|
|
//title: data.title || '',
|
|
|
|
}, [
|
|
|
|
}, [
|
|
|
|
h('i.fa.' + icon),
|
|
|
|
h('i.fa.' + icon),
|
|
|
|
h('span.cp-toolbar-name'+drawerCls, data.text)
|
|
|
|
h('span.cp-toolbar-name'+drawerCls, data.text)
|
|
|
|