Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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
dream
Commits
77150ff6
Commit
77150ff6
authored
Jun 17, 2014
by
Romain Courteaud
🐙
Committed by
Jérome Perrin
Aug 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not fail if no result is available.
parent
458eef37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
dream/platform/src2/dream/Input_viewResultList.html
dream/platform/src2/dream/Input_viewResultList.html
+4
-2
dream/platform/src2/dream/Input_viewResultList.js
dream/platform/src2/dream/Input_viewResultList.js
+7
-0
No files found.
dream/platform/src2/dream/Input_viewResultList.html
View file @
77150ff6
...
...
@@ -10,9 +10,11 @@
<script
id=
"table-template"
type=
"text/x-handlebars-template"
>
<
ul
data
-
role
=
"
listview
"
data
-
inset
=
"
true
"
class
=
"
document-listview
"
>
{{
#
documentlist
}}
{{
#
each
documentlist
}}
<
li
><
a
href
=
"
{{link}}
"
>
{{
title
}}
<
/a></
li
>
{{
/
documentlist
}}
{{
else
}}
<
p
>
No
result
yet
.
<
/p
>
{{
/
each
}}
<
/ul
>
</script>
...
...
dream/platform/src2/dream/Input_viewResultList.js
View file @
77150ff6
...
...
@@ -34,6 +34,13 @@
"
_id
"
:
gadget
.
props
.
jio_key
,
"
_attachment
"
:
"
simulation.json
"
})
.
push
(
undefined
,
function
(
error
)
{
if
(
error
.
status
===
404
)
{
// Simulation not yet generated
return
JSON
.
stringify
([]);
}
throw
error
;
})
.
push
(
function
(
sim_json
)
{
var
document_list
=
JSON
.
parse
(
sim_json
),
result_list
=
[],
...
...
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