Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sencha-core
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
sencha-core
Commits
6418e26e
Commit
6418e26e
authored
Jul 31, 2015
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Gantt Editor:
Fixed Alpha Menu
parent
efc6835b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
AlphaMenu.js
www/view/menu/AlphaMenu.js
+9
-3
No files found.
www/view/menu/AlphaMenu.js
View file @
6418e26e
...
...
@@ -21,6 +21,7 @@ Ext.define('PO.view.menu.AlphaMenu', {
],
debug
:
false
,
slaId
:
null
,
ticketStatusId
:
30000
,
// "Open"
confItemId
:
null
,
initComponent
:
function
()
{
...
...
@@ -30,6 +31,7 @@ Ext.define('PO.view.menu.AlphaMenu', {
this
.
callParent
(
arguments
);
var
sla_id
=
me
.
slaId
;
var
ticket_status_id
=
me
.
ticketStatusId
;
var
conf_item_id
=
me
.
confItemId
;
var
ticketStore
=
Ext
.
create
(
'PO.store.helpdesk.TicketStore'
);
var
serverUrl
=
"http://www.project-open.net"
;
...
...
@@ -59,9 +61,13 @@ Ext.define('PO.view.menu.AlphaMenu', {
// Use the REST server-side "proxy" to get data from www.project-open.net
ticketStore
.
getProxy
().
url
=
"/intranet-rest/data-source/domain-proxy"
;
if
(
null
!=
sla_id
)
{
ticketStore
.
getProxy
().
extraParams
=
{
url
:
serverUrl
+
"/intranet-rest/im_ticket?format=json&parent_id=1478943&deref_p=1&user_id=0&auth_token=0"
};
}
var
url
=
serverUrl
+
"/intranet-rest/im_ticket?format=json&deref_p=1&user_id=0&auth_token=0"
;
if
(
null
!=
sla_id
)
{
url
=
url
+
"&parent_id="
+
sla_id
;
}
if
(
null
!=
ticket_status_id
)
{
url
=
url
+
"&ticket_status_id="
+
ticket_status_id
;
}
if
(
null
!=
conf_item_id
)
{
url
=
url
+
"&ticket_conf_item_id="
+
conf_item_id
;
}
ticketStore
.
getProxy
().
extraParams
=
{
'url'
:
url
};
// Load the data
ticketStore
.
load
({
callback
:
function
(
a
,
b
,
c
,
d
,
e
,
f
)
{
if
(
me
.
debug
)
console
.
log
(
'PO.view.menu.AlphaMenu.initComponent: ticketStore.load.callback: Starting'
);
...
...
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