Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ecommerce-ui
Commits
2428aa3e
Commit
2428aa3e
authored
Apr 25, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: add terrible url-crop to allow multiple gadgets to digest same URL
parent
6b37e9d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
js/erp5_loader.js
js/erp5_loader.js
+10
-2
No files found.
js/erp5_loader.js
View file @
2428aa3e
...
...
@@ -6020,7 +6020,7 @@
* @return {object} field defintions and pass through
*/
app
.
content
.
fields
=
function
(
reply
)
{
var
pass
=
reply
.
pass
;
var
pass
=
reply
.
pass
,
query
,
crop
;
if
(
!
pass
.
skip
)
{
...
...
@@ -6033,10 +6033,18 @@
// update initial query with urlQuery if one was passed
if
(
pass
.
url_dict
.
url_query
)
{
pass
.
config_dict
.
initial_query
=
util
.
mergeObject
(
crop
=
pass
.
config_dict
.
property_dict
.
url_crop
;
query
=
util
.
mergeObject
(
pass
.
url_dict
.
url_query
,
pass
.
config_dict
.
initial_query
||
{}
);
// TODO: TOTALLY UGLY hack to allow 2 gadgets who require different urls
// to share... remove ASAP
if
(
crop
)
{
query
.
query
=
query
.
query
.
replace
(
crop
,
""
);
}
pass
.
config_dict
.
initial_query
=
query
;
}
// fetch field definitions - why make a query without fieldlist?
...
...
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