1 /*
  2  * ***** BEGIN LICENSE BLOCK *****
  3  * Zimbra Collaboration Suite Web Client
  4  * Copyright (C) 2007, 2009, 2010, 2013, 2014, 2016 Synacor, Inc.
  5  *
  6  * The contents of this file are subject to the Common Public Attribution License Version 1.0 (the "License");
  7  * you may not use this file except in compliance with the License.
  8  * You may obtain a copy of the License at: https://www.zimbra.com/license
  9  * The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15
 10  * have been added to cover use of software over a computer network and provide for limited attribution
 11  * for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
 12  *
 13  * Software distributed under the License is distributed on an "AS IS" basis,
 14  * WITHOUT WARRANTY OF ANY KIND, either express or implied.
 15  * See the License for the specific language governing rights and limitations under the License.
 16  * The Original Code is Zimbra Open Source Web Client.
 17  * The Initial Developer of the Original Code is Zimbra, Inc.  All rights to the Original Code were
 18  * transferred by Zimbra, Inc. to Synacor, Inc. on September 14, 2015.
 19  *
 20  * All portions of the code are Copyright (C) 2007, 2009, 2010, 2013, 2014, 2016 Synacor, Inc. All Rights Reserved.
 21  * ***** END LICENSE BLOCK *****
 22  */
 23 
 24 /**
 25  * @overview
 26  * This file contains the new task folder dialog.
 27  * 
 28  */
 29 
 30 /**
 31  * Creates the new task folder dialog.
 32  * @class
 33  * This class represents the new task folder dialog.
 34  * 
 35  * @param	{DwtControl}	parent		the parent
 36  * @param	{String}	className		the class name
 37  * 
 38  * @extends		ZmNewOrganizerDialog
 39  */
 40 ZmNewTaskFolderDialog = function(parent, className) {
 41 	ZmNewOrganizerDialog.call(this, parent, className, ZmMsg.createNewTaskFolder, ZmOrganizer.TASKS);
 42 };
 43 
 44 ZmNewTaskFolderDialog.prototype = new ZmNewOrganizerDialog;
 45 ZmNewTaskFolderDialog.prototype.constructor = ZmNewTaskFolderDialog;
 46 
 47 
 48 // Public methods
 49 
 50 /**
 51  * Returns a string representation of the object.
 52  * 
 53  * @return		{String}		a string representation of the object
 54  */
 55 ZmNewTaskFolderDialog.prototype.toString =
 56 function() {
 57 	return "ZmNewTaskFolderDialog";
 58 };
 59 
 60 
 61 // Protected methods
 62 
 63 // overload since we always want to init the color to grey
 64 ZmNewTaskFolderDialog.prototype._initColorSelect =
 65 function() {
 66 	var option = this._colorSelect.getOptionWithValue(ZmOrganizer.C_ORANGE);
 67 	this._colorSelect.setSelectedOption(option);
 68 };
 69 
 70 ZmNewTaskFolderDialog.prototype._getRemoteLabel =
 71 function() {
 72 	return ZmMsg.addRemoteTasks;
 73 };
 74 
 75 // overload so we dont show this
 76 ZmNewTaskFolderDialog.prototype._createFolderContentHtml =
 77 function(html, idx) {
 78 	return idx;
 79 };
 80