PHP Classes

File: trgrs_TaskTypes.js

Recommend this page to a friend!
  Classes of Michael J. Fuhrman   Task Types   trgrs_TaskTypes.js   Download  
File: trgrs_TaskTypes.js
Role: Auxiliary data
Content type: text/plain
Description: JavaScript functions that determine what should be done when a link is selected
Class: Task Types
Manage a list of types of tasks of a to do list
Author: By
Last change:
Date: 14 years ago
Size: 1,675 bytes
 

Contents

Class file image Download
/* ======================================= Copyright 1998 - 2010 - E Net Arch This program is distributed under the terms of the GNU General Public License (or the Lesser GPL). ======================================= */ var ENetArch = { TaskTypes : { nFolderID : 0, nPos : 0, onCheckID : function (me) { this.nPos = me.value; }, List : function () { location="List.php?nFolderID=" + this.nFolderID + "&"; } , New : function () { location="New.php?nFolderID=" + this.nFolderID + "&"; } , View : function () { location="View.php?nFolderID=" + this.nFolderID + "&nPos=" + this.nPos + "&"; } , Edit : function () { location="Edit.php?nFolderID=" + this.nFolderID + "&nPos=" + this.nPos + "&"; } , Delete : function () { location="Delete.php?nFolderID=" + this.nFolderID + "&nPos=" + this.nPos + "&"; } , Times : { nTime : { onChange : function () {} } } , Lengths : { nLength : { onChange : function () {} } } , AddNew : function (me) { me.method="post"; me.action="add.php?nFolderID=" + this.nFolderID + "&"; me.submit; } , Update : function (me) { me.method="post"; me.action="update.php?nFolderID=" + this.nFolderID + "&nPos=" + this.nPos + "&"; me.submit; } , }, Calendar : { dSelected : function (thsDate) { var nPos = ENetArch.TaskTypes.nPos; if (nPos != 0) { location="Move.php?nFolderID=" + ENetArch.TaskTypes.nFolderID + "&" + "nPos=" + nPos + "&" + "dTarget=" + thsDate + "&"; } else { location="List.php?nFolderID=" + ENetArch.TaskTypes.nFolderID + "&" + "dTarget=" + thsDate + "&"; } } } }