[DE forms] Refactoring

This commit is contained in:
Julia Radzhabova 2021-08-20 23:47:34 +03:00
parent 3940e70940
commit 4a1fd64001
2 changed files with 3 additions and 26 deletions

View file

@ -81,18 +81,10 @@
@toolbarBorderColor: #dbdbdb;
@toolbarBorderShadowColor: #FAFAFA;
@toolbarTopColor: #F7F7F7;
@toolbarBottomColor: #CCCCCC;
//@toolbarHoverColor: #7698DE;
@toolbarFontSize: 12px;
//@buttonFontSize: 11px;
//@controlBtnHoverTopColor: #6180C4;
//@controlBtnHoverBottomColor: #8AACF1;
//@btnColor: #d8dadc;
//@btnActiveColor: #7d858c;
@btnColored: #446995;
@btnActiveColored: #293F59;
@btnHoverColored: #375478;
//@notificationColor: #fcfed7;
@iconSpriteCommonPath: "../../../../common/forms/resources/img/glyphicons.png";
@icon-socnet-size: 40px;

View file

@ -59,7 +59,6 @@ define([
$(window).on('resize', this.onDocumentResize.bind(this));
this.boxSdk = $('#editor_sdk');
// this.boxSdk.css('border-left', 'none');
this.boxSdk.on('click', function(e) {
if (e.target.localName == 'canvas') {
if (me._preventClick)
@ -276,18 +275,9 @@ define([
this.editorConfig = $.extend(this.editorConfig, data.config);
this.embedConfig = $.extend(this.embedConfig, data.config.embedded);
// common.controller.modals.init(this.embedConfig);
// Docked toolbar
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;
}
$('#toolbar').addClass('top');
this.boxSdk.addClass('top');
ttOffset[1] = 40;
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));
@ -1070,11 +1060,6 @@ define([
else if ((!this.embedConfig.embedUrl || this.appOptions.canFillForms) && !this.embedConfig.fullscreenUrl)
menuItems[8].setVisible(false);
// common.controller.modals.attach({
// share: '#idt-share',
// embed: '#idt-embed'
// });
screenTip = {
toolTip: new Common.UI.Tooltip({
owner: this,