Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-gtd-dashboard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-gtd-dashboard
Commits
4fdf3c37
Commit
4fdf3c37
authored
Feb 01, 2010
by
po34devklaus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-- adjusted namespaces
parent
69e385d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
gtd.js
www/js/gtd.js
+8
-8
No files found.
www/js/gtd.js
View file @
4fdf3c37
...
...
@@ -12,7 +12,7 @@ var saveHours = function(e) {
// failure: handleFailure,
// argument: ['foo','bar']
};
var
sUrl
=
"/intranet-
xmlrpc
/rest/timesheet/"
+
document
.
getElementById
(
'overlay_task_id'
).
value
+
"/?hours="
+
document
.
getElementById
(
'hours_input'
).
value
;
var
sUrl
=
"/intranet-
gtd-dashboard
/rest/timesheet/"
+
document
.
getElementById
(
'overlay_task_id'
).
value
+
"/?hours="
+
document
.
getElementById
(
'hours_input'
).
value
;
sUrl
+=
"&hours_curr="
+
document
.
getElementById
(
'hours_logged_today'
).
innerHTML
postData
=
""
var
request
=
YAHOO
.
util
.
Connect
.
asyncRequest
(
'POST'
,
sUrl
,
callback
,
postData
);
...
...
@@ -47,7 +47,7 @@ function showOverlay(e) {
document
.
getElementById
(
"overlay_task_id"
).
value
=
elTarget
.
name
;
YAHOO
.
example
.
container
.
overlay1
.
show
();
// alert("The clicked li had an id of " + elTarget.name, "info", "clickExample");
var
sUrl
=
"/intranet-
xmlrpc
/rest/timesheet/"
+
elTarget
.
name
+
"/?scope=today"
;
var
sUrl
=
"/intranet-
gtd-dashboard
/rest/timesheet/"
+
elTarget
.
name
+
"/?scope=today"
;
// var postData = "scope=today";
var
postData
=
""
;
var
request
=
YAHOO
.
util
.
Connect
.
asyncRequest
(
'GET'
,
sUrl
,
callback
,
postData
);
...
...
@@ -345,7 +345,7 @@ YAHOO.example.RemoteCustomRequest = function() {
// set constants
// XHRDataSource
var
oDS
=
new
YAHOO
.
util
.
XHRDataSource
(
"/intranet-
xmlrpc
/rest/"
);
var
oDS
=
new
YAHOO
.
util
.
XHRDataSource
(
"/intranet-
gtd-dashboard
/rest/"
);
// Set the responseType
oDS
.
responseType
=
YAHOO
.
util
.
XHRDataSource
.
TYPE_JSON
;
...
...
@@ -371,7 +371,7 @@ YAHOO.example.RemoteCustomRequest = function() {
};
// Define an event handler
var
sUrl
=
"/intranet-
xmlrpc
/rest/projects/?object_type=task&format=json"
+
"&last_id="
+
document
.
getElementById
(
'last_id'
).
value
+
"&project_id="
+
document
.
getElementById
(
'tmp_project_id'
).
value
+
"&location=ul2"
;
var
sUrl
=
"/intranet-
gtd-dashboard
/rest/projects/?object_type=task&format=json"
+
"&last_id="
+
document
.
getElementById
(
'last_id'
).
value
+
"&project_id="
+
document
.
getElementById
(
'tmp_project_id'
).
value
+
"&location=ul2"
;
var
myHandler
=
function
(
sType
,
aArgs
)
{
var
myAC
=
aArgs
[
0
];
// reference back to the AC instance
var
elLI
=
aArgs
[
1
];
// reference to the selected LI element
...
...
@@ -417,7 +417,7 @@ var handleSuccess = function(o){
// save result from auto complete
_tmp_project_id
.
value
=
oData
[
1
];
var
sUrl
=
"/intranet-
xmlrpc
/rest/projects/?object_type=task&format=json"
var
sUrl
=
"/intranet-
gtd-dashboard
/rest/projects/?object_type=task&format=json"
sUrl
=
sUrl
+
"&last_id="
+
document
.
getElementById
(
'last_id'
).
value
+
"&project_id="
+
document
.
getElementById
(
'tmp_project_id'
).
value
+
"&location=ul2"
;
var
request
=
YAHOO
.
util
.
Connect
.
asyncRequest
(
'GET'
,
sUrl
,
callback
);
};
...
...
@@ -446,7 +446,7 @@ var callback =
// first request fails - make fake request
var
sUrl
=
"/intranet-
xmlrpc
/rest/projects/?object_type=task&format=json&last_id=0&project_id=0&location=ul2"
;
var
sUrl
=
"/intranet-
gtd-dashboard
/rest/projects/?object_type=task&format=json&last_id=0&project_id=0&location=ul2"
;
YAHOO
.
util
.
Connect
.
asyncRequest
(
'GET'
,
sUrl
,
callback
)
...
...
@@ -472,7 +472,7 @@ var callback_other_tasks =
};
var
sUrl
=
"/intranet-
xmlrpc
/rest/projects/?object_type=task&format=json&last_id="
+
countGTDElements
(
'ul1'
)
+
"&project_id=28437&location=ul3"
;
var
sUrl
=
"/intranet-
gtd-dashboard
/rest/projects/?object_type=task&format=json&last_id="
+
countGTDElements
(
'ul1'
)
+
"&project_id=28437&location=ul3"
;
var
request
=
YAHOO
.
util
.
Connect
.
asyncRequest
(
'GET'
,
sUrl
,
callback_other_tasks
);
...
...
@@ -512,7 +512,7 @@ function saveTodoList() {
argument
:
[
'foo'
,
'bar'
]
};
var
sUrl
=
"/intranet-
xmlrpc
/rest/action_items/"
;
var
sUrl
=
"/intranet-
gtd-dashboard
/rest/action_items/"
;
var
postData
=
"item_list="
+
acs_object_list
;
var
request
=
YAHOO
.
util
.
Connect
.
asyncRequest
(
'POST'
,
sUrl
,
callback
,
postData
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment