Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
senchatouch-notes
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-notes
Commits
90a223ee
Commit
90a223ee
authored
Apr 15, 2013
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Sencha Touch
parent
269fda4b
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
94 additions
and
19 deletions
+94
-19
app.js
www/app.js
+3
-3
NoteListController.js
www/app/controller/NoteListController.js
+20
-0
Note.js
www/app/model/Note.js
+5
-4
NoteStore.js
www/app/store/NoteStore.js
+30
-11
NoteList.js
www/app/view/NoteList.js
+20
-0
UserNavigationView.js
www/app/view/UserNavigationView.js
+1
-1
index.adp
www/index.adp
+0
-0
index.tcl
www/index.tcl
+15
-0
No files found.
www/app.js
View file @
90a223ee
...
@@ -3,8 +3,8 @@ Ext.application({
...
@@ -3,8 +3,8 @@ Ext.application({
name
:
'PO'
,
name
:
'PO'
,
models
:
[
'Note'
,
'User'
],
models
:
[
'Note'
,
'User'
],
stores
:
[
'NoteStore'
,
'UserStore'
,
'ContactStore'
],
stores
:
[
'NoteStore'
,
'UserStore'
,
'ContactStore'
],
views
:
[
'UserList'
,
'UserDetail'
,
'BlogList'
,
'UserNavigationView'
],
views
:
[
'UserList'
,
'UserDetail'
,
'BlogList'
,
'
NoteList'
,
'
UserNavigationView'
],
controllers
:
[
'UserNavigationController'
],
controllers
:
[
'UserNavigationController'
,
'NoteListController'
],
requires
:
[
requires
:
[
'Ext.MessageBox'
,
'Ext.MessageBox'
,
...
@@ -29,7 +29,7 @@ Ext.application({
...
@@ -29,7 +29,7 @@ Ext.application({
},
{
},
{
xtype
:
'blogList'
,
xtype
:
'blogList'
,
},
{
},
{
xtype
:
'
user
List'
,
xtype
:
'
note
List'
,
},
{
},
{
xtype
:
'userNavigationView'
,
xtype
:
'userNavigationView'
,
},
{
},
{
...
...
www/app/controller/NoteListController.js
0 → 100644
View file @
90a223ee
Ext
.
define
(
'PO.controller.NoteListController'
,
{
extend
:
'Ext.app.Controller'
,
xtype
:
'noteListController'
,
config
:
{
refs
:
{
},
control
:
{
'noteList'
:
{
activate
:
'onActivate'
}
}
},
// Load the store on-demand in order to fix iPhone loading issue
onActivate
:
function
()
{
Ext
.
getStore
(
'NoteStore'
).
load
();
}
});
www/app/model/Note.js
View file @
90a223ee
...
@@ -3,7 +3,8 @@ Ext.define('PO.model.Note', {
...
@@ -3,7 +3,8 @@ Ext.define('PO.model.Note', {
config
:
{
config
:
{
fields
:
[
fields
:
[
'id'
,
'id'
,
'object_name'
,
'note'
,
'object_id'
,
'note_type_id'
'note_type_id'
],
],
proxy
:
{
proxy
:
{
...
@@ -15,7 +16,7 @@ Ext.define('PO.model.Note', {
...
@@ -15,7 +16,7 @@ Ext.define('PO.model.Note', {
extraParams
:
{
extraParams
:
{
format
:
'json'
,
// Tell the ]po[ REST to return JSON data.
format
:
'json'
,
// Tell the ]po[ REST to return JSON data.
deref_p
:
'1'
,
deref_p
:
'1'
,
columns
:
'note_type_id'
columns
:
'note
,note
_type_id'
},
},
reader
:
{
reader
:
{
type
:
'json'
,
// Tell the Proxy Reader to parse JSON
type
:
'json'
,
// Tell the Proxy Reader to parse JSON
...
...
www/app/store/NoteStore.js
View file @
90a223ee
Ext
.
define
(
'PO.store.NoteStore'
,
{
Ext
.
define
(
'PO.store.NoteStore'
,
{
extend
:
'Ext.data.Store'
,
extend
:
'Ext.data.Store'
,
requires
:
'Ext.DateExtras
'
,
storeId
:
'noteStore
'
,
config
:
{
config
:
{
model
:
'PO.model.Note'
,
model
:
'PO.model.Note'
,
sorters
:
[
autoLoad
:
false
,
{
sorters
:
'last_name'
,
property
:
'note_type_id'
,
direction
:
'ASC'
grouper
:
{
groupFn
:
function
(
record
)
{
var
fn
=
record
.
get
(
'note'
);
if
(
fn
==
null
)
{
return
'a'
;
}
return
fn
[
0
];
}
},
},
{
property
:
'object_name'
,
sorters
:
[{
property
:
'note'
,
direction
:
'ASC'
direction
:
'ASC'
}],
proxy
:
{
type
:
'rest'
,
url
:
'/intranet-rest/im_note'
,
appendId
:
true
,
extraParams
:
{
format
:
'json'
},
reader
:
{
type
:
'json'
,
rootProperty
:
'data'
}
}
]
}
}
}
});
});
www/app/view/NoteList.js
0 → 100644
View file @
90a223ee
Ext
.
define
(
'PO.view.NoteList'
,
{
extend
:
'Ext.List'
,
xtype
:
'noteList'
,
requires
:
[
'PO.store.NoteStore'
],
config
:
{
title
:
'NoteList'
,
iconCls
:
'star'
,
itemTpl
:
'<div class="contact2">{note}</div>'
,
disclosure
:
true
,
grouped
:
true
,
indexBar
:
true
,
store
:
'NoteStore'
,
onItemDisclosure
:
true
}
});
www/app/view/UserNavigationView.js
View file @
90a223ee
...
@@ -6,7 +6,7 @@ Ext.define('PO.view.UserNavigationView', {
...
@@ -6,7 +6,7 @@ Ext.define('PO.view.UserNavigationView', {
'PO.view.UserDetail'
'PO.view.UserDetail'
],
],
config
:
{
config
:
{
title
:
'User
NavView
'
,
title
:
'User
s
'
,
iconCls
:
'star'
,
iconCls
:
'star'
,
items
:
[{
items
:
[{
xtype
:
'userList'
xtype
:
'userList'
...
...
www/index.
html
→
www/index.
adp
View file @
90a223ee
File moved
www/index.tcl
0 → 100644
View file @
90a223ee
# /packages/senchatouch-notes/www/index.tcl
#
# Copyright (c
)
2003-2013
]
project-open
[
# All rights reserved
ad_page_contract
{
@author frank.bergmann@ticket-open.com
}
{
}
# ---------------------------------------------------------------
# Defaults & Security
# ---------------------------------------------------------------
set
current_user_id
[
ad_maybe_redirect_for_registration
]
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