Fixed "Mouse right click don't works correctly" (Closes #466)

+ small fixes
This commit is contained in:
RainLoop Team 2015-02-17 17:16:38 +04:00
parent e3064b10aa
commit e96f297def
12 changed files with 76 additions and 25 deletions

View file

@ -133,7 +133,7 @@
{name: 'others'}
],
'removePlugins': 'liststyle,table,quicktable,tableresize,tabletools,contextmenu', //blockquote
'removePlugins': 'liststyle',
'removeButtons': 'Format,Undo,Redo,Cut,Copy,Paste,Anchor,Strike,Subscript,Superscript,Image,SelectAll,Source',
'removeDialogTabs': 'link:advanced;link:target;image:advanced;images:advanced',

View file

@ -306,7 +306,6 @@
}
self.editor.setKeystroke(window.CKEDITOR.CTRL + 65 /* A */, 'selectAll');
self.editor.editable().addClass('cke_enable_context_menu');
self.fOnReady();
self.__resizable = true;

View file

@ -1262,13 +1262,16 @@
ComposePopupView.prototype.onShowWithDelay = function ()
{
if ('' === this.to())
if (!Globals.bMobileDevice)
{
this.to.focused(true);
}
else if (this.oEditor)
{
this.oEditor.focus();
if ('' === this.to())
{
this.to.focused(true);
}
else if (this.oEditor)
{
this.oEditor.focus();
}
}
this.resizerTrigger();

View file

@ -9,6 +9,7 @@
Enums = require('Common/Enums'),
Consts = require('Common/Consts'),
Globals = require('Common/Globals'),
Utils = require('Common/Utils'),
CapaAdminStore = require('Stores/Admin/Capa'),
@ -412,7 +413,7 @@
DomainPopupView.prototype.onShowWithDelay = function ()
{
if ('' === this.name())
if ('' === this.name() && !Globals.bMobile)
{
this.name.focused(true);
}

View file

@ -8,6 +8,7 @@
ko = require('ko'),
Enums = require('Common/Enums'),
Globals = require('Common/Globals'),
Utils = require('Common/Utils'),
Translator = require('Common/Translator'),
@ -186,7 +187,7 @@
FilterPopupView.prototype.onShowWithDelay = function ()
{
if (this.isNew() && this.filter())
if (this.isNew() && this.filter() && !Globals.bMobile)
{
this.filter().name.focused(true);
}

View file

@ -9,6 +9,7 @@
Enums = require('Common/Enums'),
Consts = require('Common/Consts'),
Globals = require('Common/Globals'),
Utils = require('Common/Utils'),
Translator = require('Common/Translator'),
@ -125,7 +126,10 @@
FolderCreateView.prototype.onShowWithDelay = function ()
{
this.folderName.focused(true);
if (!Globals.bMobile)
{
this.folderName.focused(true);
}
};
module.exports = FolderCreateView;

View file

@ -8,6 +8,7 @@
ko = require('ko'),
Enums = require('Common/Enums'),
Globals = require('Common/Globals'),
Utils = require('Common/Utils'),
Translator = require('Common/Translator'),
HtmlEditor = require('Common/HtmlEditor'),
@ -220,7 +221,7 @@
IdentityPopupView.prototype.onShowWithDelay = function ()
{
if (!this.owner())
if (!this.owner() && !Globals.bMobile)
{
this.email.focused(true);
}

View file

@ -8,6 +8,7 @@
ko = require('ko'),
Enums = require('Common/Enums'),
Globals = require('Common/Globals'),
Utils = require('Common/Utils'),
Remote = require('Storage/User/Remote'),
@ -79,7 +80,10 @@
TwoFactorTestPopupView.prototype.onShowWithDelay = function ()
{
this.code.focused(true);
if (!Globals.bMobile)
{
this.code.focused(true);
}
};
module.exports = TwoFactorTestPopupView;