Removed unnecessary lang key SELECT_NO_PARENT

This commit is contained in:
RainLoop Team 2016-01-25 19:42:36 +03:00
parent 568a1a1cda
commit e4d1be87bc

View file

@ -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));