[DE forms] Refactoring
This commit is contained in:
parent
3940e70940
commit
4a1fd64001
|
@ -81,18 +81,10 @@
|
||||||
@toolbarBorderColor: #dbdbdb;
|
@toolbarBorderColor: #dbdbdb;
|
||||||
@toolbarBorderShadowColor: #FAFAFA;
|
@toolbarBorderShadowColor: #FAFAFA;
|
||||||
@toolbarTopColor: #F7F7F7;
|
@toolbarTopColor: #F7F7F7;
|
||||||
@toolbarBottomColor: #CCCCCC;
|
|
||||||
//@toolbarHoverColor: #7698DE;
|
|
||||||
@toolbarFontSize: 12px;
|
@toolbarFontSize: 12px;
|
||||||
//@buttonFontSize: 11px;
|
|
||||||
//@controlBtnHoverTopColor: #6180C4;
|
|
||||||
//@controlBtnHoverBottomColor: #8AACF1;
|
|
||||||
//@btnColor: #d8dadc;
|
|
||||||
//@btnActiveColor: #7d858c;
|
|
||||||
@btnColored: #446995;
|
@btnColored: #446995;
|
||||||
@btnActiveColored: #293F59;
|
@btnActiveColored: #293F59;
|
||||||
@btnHoverColored: #375478;
|
@btnHoverColored: #375478;
|
||||||
//@notificationColor: #fcfed7;
|
|
||||||
|
|
||||||
@iconSpriteCommonPath: "../../../../common/forms/resources/img/glyphicons.png";
|
@iconSpriteCommonPath: "../../../../common/forms/resources/img/glyphicons.png";
|
||||||
@icon-socnet-size: 40px;
|
@icon-socnet-size: 40px;
|
||||||
|
|
|
@ -59,7 +59,6 @@ define([
|
||||||
$(window).on('resize', this.onDocumentResize.bind(this));
|
$(window).on('resize', this.onDocumentResize.bind(this));
|
||||||
|
|
||||||
this.boxSdk = $('#editor_sdk');
|
this.boxSdk = $('#editor_sdk');
|
||||||
// this.boxSdk.css('border-left', 'none');
|
|
||||||
this.boxSdk.on('click', function(e) {
|
this.boxSdk.on('click', function(e) {
|
||||||
if (e.target.localName == 'canvas') {
|
if (e.target.localName == 'canvas') {
|
||||||
if (me._preventClick)
|
if (me._preventClick)
|
||||||
|
@ -276,18 +275,9 @@ define([
|
||||||
this.editorConfig = $.extend(this.editorConfig, data.config);
|
this.editorConfig = $.extend(this.editorConfig, data.config);
|
||||||
this.embedConfig = $.extend(this.embedConfig, data.config.embedded);
|
this.embedConfig = $.extend(this.embedConfig, data.config.embedded);
|
||||||
|
|
||||||
// common.controller.modals.init(this.embedConfig);
|
$('#toolbar').addClass('top');
|
||||||
|
this.boxSdk.addClass('top');
|
||||||
// Docked toolbar
|
ttOffset[1] = 40;
|
||||||
if (this.embedConfig.toolbarDocked === 'bottom') {
|
|
||||||
$('#toolbar').addClass('bottom');
|
|
||||||
this.boxSdk.addClass('bottom');
|
|
||||||
ttOffset[1] = -40;
|
|
||||||
} else {
|
|
||||||
$('#toolbar').addClass('top');
|
|
||||||
this.boxSdk.addClass('top');
|
|
||||||
ttOffset[1] = 40;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.appOptions.customization = this.editorConfig.customization;
|
this.appOptions.customization = this.editorConfig.customization;
|
||||||
this.appOptions.canRenameAnonymous = !((typeof (this.appOptions.customization) == 'object') && (typeof (this.appOptions.customization.anonymous) == 'object') && (this.appOptions.customization.anonymous.request===false));
|
this.appOptions.canRenameAnonymous = !((typeof (this.appOptions.customization) == 'object') && (typeof (this.appOptions.customization.anonymous) == 'object') && (this.appOptions.customization.anonymous.request===false));
|
||||||
|
@ -1070,11 +1060,6 @@ define([
|
||||||
else if ((!this.embedConfig.embedUrl || this.appOptions.canFillForms) && !this.embedConfig.fullscreenUrl)
|
else if ((!this.embedConfig.embedUrl || this.appOptions.canFillForms) && !this.embedConfig.fullscreenUrl)
|
||||||
menuItems[8].setVisible(false);
|
menuItems[8].setVisible(false);
|
||||||
|
|
||||||
// common.controller.modals.attach({
|
|
||||||
// share: '#idt-share',
|
|
||||||
// embed: '#idt-embed'
|
|
||||||
// });
|
|
||||||
|
|
||||||
screenTip = {
|
screenTip = {
|
||||||
toolTip: new Common.UI.Tooltip({
|
toolTip: new Common.UI.Tooltip({
|
||||||
owner: this,
|
owner: this,
|
||||||
|
|
Loading…
Reference in a new issue