Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos.core
Commits
88fee8ab
Commit
88fee8ab
authored
Nov 22, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use query from url instead of magical internal value.
parent
4266fd44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
16 deletions
+12
-16
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting_theme/vifib_hosting_js/vifib.js.xml
...l_skins/vifib_hosting_theme/vifib_hosting_js/vifib.js.xml
+12
-16
No files found.
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting_theme/vifib_hosting_js/vifib.js.xml
View file @
88fee8ab
...
...
@@ -8,7 +8,7 @@
<dictionary>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts2196
7421.72
</string>
</value>
<value>
<string>
ts2196
9328.27
</string>
</value>
</item>
<item>
<key>
<string>
__name__
</string>
</key>
...
...
@@ -106,19 +106,18 @@ function drawSoftwareReleaseList(data) {\n
\n
function updateSoftwareReleaseList(event) {\n
event.preventDefault();\n
q = $(\'#software_release_query\')[0][\'value\']\n
$.getJSON(\n
vifib[\'site_url\'] + "/ERP5Site_getSoftwareReleaseListAsJSON",\n
{"title":q},\n
drawSoftwareReleaseList);\n
query_kw = $.deparam.fragment();\n
query_kw[\'query\'] = $(\'#software_release_query\')[0][\'value\'];\n
window.location.hash = $.param(query_kw);\n
}\n
\n
function softwareReleaseController() {\n
function softwareReleaseController(
query
) {\n
js_container = $("#js_container");\n
js_container.empty();\n
var input = $(\'
<input
type=
"text"
>
\');\n
input.attr(\'id\', "software_release_query");\n
input.addClass("software_release_input");\n
input.val(query);\n
$(\'form\').submit(updateSoftwareReleaseList);\n
js_container.append(input);\n
\n
...
...
@@ -130,8 +129,10 @@ function softwareReleaseController() {\n
software_release_container.attr(\'id\', \'software_release_container\');\n
search.after(software_release_container);\n
search.click(updateSoftwareReleaseList);\n
$.getJSON(\n
vifib[\'site_url\'] + "/ERP5Site_getSoftwareReleaseListAsJSON",\n
if (query) { q = {\'title\': query}; }\n
else {q = {};}\n
console.log(q);\n
$.getJSON(vifib[\'site_url\'] + "/ERP5Site_getSoftwareReleaseListAsJSON", q,\n
drawSoftwareReleaseList);\n
}\n
\n
...
...
@@ -232,12 +233,7 @@ function requestController(software_release_id) {\n
\n
function hashController ()\n
{\n
var hash = \'\';\n
if (window.location.hash.length)\n
{\n
hash = window.location.hash.split(\'#\')[1];\n
}\n
query_kw = $.deparam(hash);\n
query_kw = $.deparam.fragment();\n
software_release = query_kw[\'software_release\'];\n
query = query_kw[\'query\'];\n
if (software_release) { requestController(software_release);}\n
...
...
@@ -253,7 +249,7 @@ function hashController ()\n
</item>
<item>
<key>
<string>
size
</string>
</key>
<value>
<int>
68
96
</int>
</value>
<value>
<int>
68
69
</int>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
...
...
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