From e4d1be87bc757d0bfe3b402e717eee700532999f Mon Sep 17 00:00:00 2001 From: RainLoop Team Date: Mon, 25 Jan 2016 19:42:36 +0300 Subject: [PATCH] Removed unnecessary lang key SELECT_NO_PARENT --- dev/View/Popup/FolderCreate.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/dev/View/Popup/FolderCreate.js b/dev/View/Popup/FolderCreate.js index 424f4b74b..ba26bcc67 100644 --- a/dev/View/Popup/FolderCreate.js +++ b/dev/View/Popup/FolderCreate.js @@ -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));