Small fixes

This commit is contained in:
RainLoop Team 2014-05-15 20:06:44 +04:00
parent 67f666fa7d
commit 9b59ad32dc
16 changed files with 433 additions and 233 deletions

View file

@ -273,6 +273,16 @@ AbstractApp.prototype.pub = function (sName, aArgs)
return this;
};
/**
* @param {string} sName
* @return {boolean}
*/
AbstractApp.prototype.capa = function (sName)
{
var mCapa = this.settingsGet('Capa');
return Utils.isArray(mCapa) && Utils.isNormal(sName) && -1 < Utils.inArray(sName, mCapa);
};
AbstractApp.prototype.bootstart = function ()
{
var self = this;

View file

@ -212,6 +212,11 @@ AdminApp.prototype.bootstart = function ()
}
else
{
if (!RL.capa(Enums.Capa.Prem))
{
Utils.removeSettingsViewModel(AdminBranding);
}
if (!!RL.settingsGet('Auth'))
{
// TODO

View file

@ -27,6 +27,13 @@ Enums.StateType = {
'Admin': 1
};
/**
* @enum {string}
*/
Enums.Capa = {
'Prem': 'PREM'
};
/**
* @enum {string}
*/

View file

@ -1,7 +1,7 @@
.b-domain-content {
&.modal {
width: 645px;
width: 810px;
}
.modal-header {
@ -11,17 +11,17 @@
.modal-body {
position: relative;
overflow: hidden;
width: 1300px;
height: 390px;
width: 1600px;
height: 370px;
left: 0;
}
&.domain-edit .modal-body {
height: 350px;
height: 320px;
}
&.domain-white-list-page .modal-body {
left: -640px;
left: -800px;
}
.error-desc {