mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-02 21:12:02 +08:00
Removed unnecessary lang key SELECT_NO_PARENT
This commit is contained in:
parent
568a1a1cda
commit
e4d1be87bc
1 changed files with 1 additions and 8 deletions
|
@ -11,7 +11,6 @@
|
|||
Consts = require('Common/Consts'),
|
||||
Globals = require('Common/Globals'),
|
||||
Utils = require('Common/Utils'),
|
||||
Translator = require('Common/Translator'),
|
||||
|
||||
FolderStore = require('Stores/User/Folder'),
|
||||
|
||||
|
@ -29,10 +28,6 @@
|
|||
{
|
||||
AbstractView.call(this, 'Popups', 'PopupsFolderCreate');
|
||||
|
||||
Translator.initOnStartOrLangChange(function () {
|
||||
this.sNoParentText = Translator.i18n('POPUPS_CREATE_FOLDER/SELECT_NO_PARENT');
|
||||
}, this);
|
||||
|
||||
this.folderName = ko.observable('');
|
||||
this.folderName.focused = ko.observable(false);
|
||||
|
||||
|
@ -50,7 +45,7 @@
|
|||
}
|
||||
;
|
||||
|
||||
aTop.push(['', this.sNoParentText]);
|
||||
aTop.push(['', '']);
|
||||
|
||||
if ('' !== FolderStore.namespace)
|
||||
{
|
||||
|
@ -94,8 +89,6 @@
|
|||
kn.extendAsViewModel(['View/Popup/FolderCreate', 'PopupsFolderCreateViewModel'], FolderCreateView);
|
||||
_.extend(FolderCreateView.prototype, AbstractView.prototype);
|
||||
|
||||
FolderCreateView.prototype.sNoParentText = '';
|
||||
|
||||
FolderCreateView.prototype.simpleFolderNameValidation = function (sName)
|
||||
{
|
||||
return (/^[^\\\/]+$/g).test(Utils.trim(sName));
|
||||
|
|
Loading…
Reference in a new issue