Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
senchatouch-timesheet
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
senchatouch-timesheet
Commits
a4df74f8
Commit
a4df74f8
authored
Dec 09, 2015
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Sencha Touch Timesheet:
Updated to work with Sencha Touch 2.4.2
parent
d1d89a21
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
48 additions
and
44 deletions
+48
-44
senchatouch-timesheet.info
senchatouch-timesheet.info
+3
-3
app.js
www/app.js
+3
-2
app.json
www/app.json
+2
-2
TimesheetMainProjectListController.js
www/app/controller/TimesheetMainProjectListController.js
+38
-35
TimesheetMainProjectList.js
www/app/view/TimesheetMainProjectList.js
+1
-1
index.adp
www/index.adp
+1
-1
No files found.
senchatouch-timesheet.info
View file @
a4df74f8
...
...
@@ -10,15 +10,15 @@
<inherit-templates-p>
f
</inherit-templates-p>
<auto-mount>
senchatouch-timesheet
</auto-mount>
<version
name=
"
4.1.0.0.0"
url=
"http://openacs.org/repository/download/apm/senchatouch-timesheet-4.1
.0.0.0.apm"
>
<version
name=
"
5.0.0.0.0"
url=
"http://openacs.org/repository/download/apm/senchatouch-timesheet-5.0
.0.0.0.apm"
>
<owner
url=
"mailto:frank.bergmann@project-open.com"
>
Frank Bergmann
</owner>
<summary>
Log hours using your mobile device
</summary>
<vendor
url=
"http://www.project-open.com/"
>
]project-open[
</vendor>
<description
format=
"text/plain"
>
Allows to log hours on a list of frequently used projects.
</description>
<maturity>
0
</maturity>
<provides
url=
"senchatouch-timesheet"
version=
"
4.1
.0.0.0"
/>
<requires
url=
"senchatouch-v2
11"
version=
"4.1
.0.0.0"
/>
<provides
url=
"senchatouch-timesheet"
version=
"
5.0
.0.0.0"
/>
<requires
url=
"senchatouch-v2
42"
version=
"1.0
.0.0.0"
/>
<requires
url=
"intranet-timesheet2"
version=
"4.1.0.0.0"
/>
<requires
url=
"intranet-timesheet2-tasks"
version=
"4.1.0.0.0"
/>
<requires
url=
"intranet-reporting"
version=
"4.1.0.0.0"
/>
...
...
www/app.js
View file @
a4df74f8
...
...
@@ -49,11 +49,12 @@ Ext.application({
Ext
.
create
(
"Ext.tab.Panel"
,
{
fullscreen
:
true
,
tabBarPosition
:
'bottom'
,
xtype
:
'tabPanel'
,
items
:
[
// The application consists of two three only:
{
xtype
:
'splashPage'
},
{
xtype
:
'timesheetMainProjectListNavigationView'
}
//
{xtype: 'noteNavigationView'}
{
xtype
:
'timesheetMainProjectListNavigationView'
}
,
{
xtype
:
'noteNavigationView'
}
]
});
}
...
...
www/app.json
View file @
a4df74f8
...
...
@@ -10,7 +10,7 @@
"name"
:
"List"
,
"js"
:
[
{
"path"
:
"/senchatouch-v2
11
/sencha-touch-all-debug.js"
"path"
:
"/senchatouch-v2
42
/sencha-touch-all-debug.js"
},
{
"path"
:
"app.js"
,
...
...
@@ -19,7 +19,7 @@
],
"css"
:
[
{
"path"
:
"/senchatouch-v2
11
/resources/css/sencha-touch.css"
,
"path"
:
"/senchatouch-v2
42
/resources/css/sencha-touch.css"
,
"update"
:
"delta"
},
{
...
...
www/app/controller/TimesheetMainProjectListController.js
View file @
a4df74f8
...
...
@@ -16,28 +16,30 @@ Ext.define('PO.controller.TimesheetMainProjectListController', {
extend
:
'Ext.app.Controller'
,
xtype
:
'timesheetMainProjectListController'
,
config
:
{
profile
:
Ext
.
os
.
deviceType
.
toLowerCase
(),
refs
:
{
timesheetMainProjectListNavigationView
:
'timesheetMainProjectListNavigationView'
,
timesheetMainProjectList
:
'timesheetMainProjectList'
,
timesheetDatePicker
:
'#timesheetDatePicker'
},
control
:
{
'timesheetMainProjectList'
:
{
activate
:
'onActivate'
,
itemtap
:
'onItemTap'
,
disclose
:
'onDisclose'
,
}
}
profile
:
Ext
.
os
.
deviceType
.
toLowerCase
(),
refs
:
{
timesheetMainProjectListNavigationView
:
'timesheetMainProjectListNavigationView'
,
timesheetMainProjectList
:
'timesheetMainProjectList'
,
timesheetDatePicker
:
'#timesheetDatePicker'
,
tabPanel
:
'tabPanel'
},
control
:
{
'timesheetMainProjectList'
:
{
activate
:
'onActivate'
,
itemtap
:
'onItemTap'
,
disclose
:
'onDisclose'
}
}
},
onActivate
:
function
()
{
console
.
log
(
'TimesheetMainProjectList container is activ
e'
);
console
.
log
(
'TimesheetMainProjectListController.onActivat
e'
);
},
// Tap on MainList - same as Disclose at the moment
onItemTap
:
function
(
view
,
index
,
target
,
record
,
event
)
{
this
.
onDisclose
(
null
,
record
);
console
.
log
(
'TimesheetMainProjectListController.onItemTap'
);
this
.
onDisclose
(
null
,
record
);
},
/**
...
...
@@ -45,26 +47,27 @@ Ext.define('PO.controller.TimesheetMainProjectListController', {
* Show the TimesheetTaskList with the specified project.
*/
onDisclose
:
function
(
list
,
record
)
{
var
navView
=
this
.
getTimesheetMainProjectListNavigationView
();
var
project_name
=
record
.
get
(
'project_name'
);
var
taskList
=
Ext
.
create
(
"PO.view.TimesheetTaskList"
,
{
title
:
project_name
+
' Tasks and Hours'
});
// Load the right data into the store
var
store
=
Ext
.
data
.
StoreManager
.
lookup
(
'TimesheetTaskStore'
);
var
today
=
this
.
getTimesheetDatePicker
().
getValue
();
store
.
load
({
params
:
{
'main_project_id'
:
record
.
get
(
'project_id'
),
'date'
:
Ext
.
Date
.
format
(
today
,
'Y-m-d'
)
}
});
// Push the task list
taskList
.
setStore
(
store
);
var
list
=
navView
.
push
(
taskList
);
console
.
log
(
'TimesheetMainProjectListController.onDisclose'
);
var
navView
=
this
.
getTimesheetMainProjectListNavigationView
();
var
project_name
=
record
.
get
(
'project_name'
);
var
taskList
=
Ext
.
create
(
"PO.view.TimesheetTaskList"
,
{
title
:
project_name
+
' Tasks and Hours'
});
// Load the right data into the store
var
store
=
Ext
.
data
.
StoreManager
.
lookup
(
'TimesheetTaskStore'
);
var
today
=
this
.
getTimesheetDatePicker
().
getValue
();
store
.
load
({
params
:
{
'main_project_id'
:
record
.
get
(
'project_id'
),
'date'
:
Ext
.
Date
.
format
(
today
,
'Y-m-d'
)
}
});
// Push the task list
taskList
.
setStore
(
store
);
var
list
=
navView
.
push
(
taskList
);
}
});
www/app/view/TimesheetMainProjectList.js
View file @
a4df74f8
...
...
@@ -55,7 +55,7 @@ Ext.define('PO.view.TimesheetMainProjectList', {
label
:
'Date'
,
value
:
new
Date
(),
dateFormat
:
'Y-m-d'
,
picker
:
{
yearFrom
:
201
4
}
picker
:
{
yearFrom
:
201
5
}
}
]
}
...
...
www/index.adp
View file @
a4df74f8
...
...
@@ -11,7 +11,7 @@
<head>
<meta
charset=
"UTF-8"
>
<title>
]po[ Timesheet
</title>
<script
id=
"microloader"
type=
"text/javascript"
src=
"/senchatouch-v2
11
/microloader/development.js"
></script>
<script
id=
"microloader"
type=
"text/javascript"
src=
"/senchatouch-v2
42
/microloader/development.js"
></script>
</head>
<body>
</body>
...
...
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