diff --git a/common/loginpage/src/css/window.less b/common/loginpage/src/css/window.less
index 91321f4ca..827268fd7 100644
--- a/common/loginpage/src/css/window.less
+++ b/common/loginpage/src/css/window.less
@@ -290,3 +290,7 @@ dialog {
content: data-uri('../res/img/spinner-light.png');
}
}
+
+dialog.dlg-about {
+ will-change: transform;
+}
diff --git a/common/loginpage/src/dialogabout.js b/common/loginpage/src/dialogabout.js
index caafe9d2c..0a84764b8 100644
--- a/common/loginpage/src/dialogabout.js
+++ b/common/loginpage/src/dialogabout.js
@@ -8,20 +8,10 @@
}};
Dialog.call(this, params);
-
- this.pendingBody = null;
- this.cover = true;
}
AboutDialog.prototype = Object.create(Dialog.prototype);
AboutDialog.prototype.constructor = AboutDialog;
- AboutDialog.prototype.setBody = function(html) {
- this.pendingBody = html;
- if (this.$body) {
- this.$body.html(html);
- }
- };
-
// window.AboutDialog = AboutDialog;
// }();
\ No newline at end of file
diff --git a/common/loginpage/src/panelconnect.js b/common/loginpage/src/panelconnect.js
index 77b8adcac..617b845a5 100644
--- a/common/loginpage/src/panelconnect.js
+++ b/common/loginpage/src/panelconnect.js
@@ -72,79 +72,6 @@
args.id&&(args.id=`id=${args.id}`)||(args.id='');
- // var _html_empty_panel_with_carousel =
- // `
- //
- // ${_lang.portalEmptyTitle}
- //
- //
- //
- //
${_lang.emptySlide1Title}
- //
${_lang.emptySlide1Text}
- //
- //
- //
- //
${_lang.emptySlide2Title}
- //
${_lang.emptySlide2Text}
- //
- //
- //
- //
${_lang.emptySlide3Title}
- //
${_lang.emptySlide3Text}
- //
- //
- //
- //
- //
- //
- //
- //
`;
-
- // var _html_empty_panel_with_providers =
- // `
- //
- //
- // ${_lang.portalEmptyDescr}
- //
- // ${_lang.portalEmptyAdv1}
- //
- //
- //
`;
-
- // var _html = `
- // ${config.portals.checklist.length > 1 ? _html_empty_panel_with_providers : _html_empty_panel_with_carousel}
- //
- //
- //
${_lang.portalListTitle}
- //
- //
- //
- //
- //
- //
- //
`;
this.tpl_sidebar =
``;
- // args.tplPage = _html;
args.menu = '.main-column.tool-menu';
args.field = '.main-column.col-center';
args.itemindex = 2;
- // args.itemtext = _lang.actConnectTo;
args.tplItem = 'nomenuitem';
baseView.prototype.constructor.call(this, args);
@@ -174,13 +99,10 @@
utils.fn.extend(ViewPortals.prototype, {
render: function() {
- // baseView.prototype.render.apply(this, arguments);
const $placeholder = $(this.opts.placeholder);
$placeholder.html(this.tpl_sidebar);
- // this.$panelNoPortals = this.$panel.find('#box-empty-portals');
- // this.$panelPortalList = this.$panel.find('#box-portals');
this.$sidebarPortalList = $(this.opts.placeholder);
},
portaltemplate: function(info, edit) {
@@ -262,13 +184,7 @@
return html_empty_panel;
},
onscale: function (pasteSvg) {
- // if ( !pasteSvg ) {
- // $('button .icon.more',this.$panelPortalList).each(function (){
- // let elm = $(this);
- // if( !elm.find('i.icon').length )
- // elm.append($(''));
- // });
- // }
+
}
});
@@ -318,8 +234,6 @@
};
function _do_logout(model) {
- // var model = portalCollection.find('name', info);
- // model && model.set('logged', false);
let info = {domain:model.path};
const _provider = config.portals.providers.find(model.provider);
@@ -355,12 +269,7 @@
window.sdk && window.sdk.checkAuth && window.sdk.checkAuth(auth_arr);
- // this.view.$panelNoPortals.hide();
- // this.view.$panelPortalList.show();
- } else {
- // this.view.$panelNoPortals.show();
- // this.view.$panelPortalList.hide();
- }
+ }
};
var _init_collection = function() {
@@ -644,35 +553,8 @@
else carousel.$items.eq(_pre_index).removeClass('migrate pre-active active pro-active').addClass('pre-active');
};
- // function _initCarousel() {
- // let _$panel = this.view.$panelNoPortals;
- // carousel.$items = _$panel.find('.carousel__slide');
- // let _activeindex = carousel.$items.filter('.active').index();
-
- // if ( !(navigator.userAgent.indexOf("Windows NT 5.") < 0) ||
- // !(navigator.userAgent.indexOf("Windows NT 6.0") < 0) )
- // {
- // $('.carousel', _$panel).addClass('winxp');
- // }
-
- // let _pre_index = _activeindex - 1,
- // _pro_index = _activeindex + 1;
-
- // if ( _pre_index < 0 ) _pre_index = carousel.$items.length - 1;
- // if ( _pro_index > carousel.$items.length - 1 ) _pro_index = 0;
- // carousel.$items.eq(_pre_index).addClass('pre-active');
- // carousel.$items.eq(_pro_index).addClass('pro-active');
-
- // _$panel.find('.carousel__scrolls > .carousel__scroll__btn')
- // .on('click', e => {
- // _scrollCarousel(e.target.getAttribute('value'));
- // });
-
- // _on_theme_changed(localStorage.getItem('ui-theme-id'));
- // };
function _on_lang_changed(ol,nl) {
- // $('.btn-quick.logout',this.$panelPortalList).attr('tooltip',utils.Lang.menuLogout);
};
function _on_theme_changed(name, type) {