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
458eef37
Commit
458eef37
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
Add a back button to navigate to the container.
parent
147826e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
dream/platform/src2/dream/index.html
dream/platform/src2/dream/index.html
+2
-0
dream/platform/src2/dream/index.js
dream/platform/src2/dream/index.js
+9
-1
No files found.
dream/platform/src2/dream/index.html
View file @
458eef37
...
@@ -50,6 +50,8 @@
...
@@ -50,6 +50,8 @@
<a
href=
"#leftpanel"
<a
href=
"#leftpanel"
data-icon=
"bars"
data-icon=
"bars"
class=
"menu_link ui-btn ui-icon-bars ui-btn-icon-left"
>
Menu
</a>
class=
"menu_link ui-btn ui-icon-bars ui-btn-icon-left"
>
Menu
</a>
<a
data-icon=
"back"
class=
"back_link ui-btn ui-icon-back ui-btn-icon-left"
>
Back
</a>
<h1>
Dream Simulation
</h1>
<h1>
Dream Simulation
</h1>
</header>
</header>
...
...
dream/platform/src2/dream/index.js
View file @
458eef37
...
@@ -306,6 +306,7 @@
...
@@ -306,6 +306,7 @@
// Render the page
// Render the page
.
declareMethod
(
"
render
"
,
function
(
options
)
{
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
gadget
=
this
,
var
gadget
=
this
,
back_kw
=
{
action
:
"
view
"
},
page_gadget
,
page_gadget
,
portal_type
=
"
Input Module
"
,
portal_type
=
"
Input Module
"
,
nav_element
=
gadget
.
props
.
element
nav_element
=
gadget
.
props
.
element
...
@@ -326,6 +327,7 @@
...
@@ -326,6 +327,7 @@
portal_type
=
"
Input
"
;
portal_type
=
"
Input
"
;
}
else
{
}
else
{
portal_type
=
"
Output
"
;
portal_type
=
"
Output
"
;
back_kw
.
id
=
options
.
id
;
}
}
}
}
...
@@ -341,7 +343,8 @@
...
@@ -341,7 +343,8 @@
}).
push
(
function
()
{
}).
push
(
function
()
{
return
RSVP
.
all
([
return
RSVP
.
all
([
page_gadget
.
getElement
(),
page_gadget
.
getElement
(),
calculateNavigationHTML
(
gadget
,
portal_type
,
options
)
calculateNavigationHTML
(
gadget
,
portal_type
,
options
),
gadget
.
aq_pleasePublishMyState
(
back_kw
)
]);
]);
}).
push
(
function
(
result_list
)
{
}).
push
(
function
(
result_list
)
{
var
nav_html
=
result_list
[
1
],
var
nav_html
=
result_list
[
1
],
...
@@ -351,6 +354,11 @@
...
@@ -351,6 +354,11 @@
gadget
.
props
.
element
.
querySelector
(
"
header h1
"
).
textContent
=
gadget
.
props
.
element
.
querySelector
(
"
header h1
"
).
textContent
=
portal_type
;
portal_type
;
// XXX Hide the back button in case of module display?
// Update back link
gadget
.
props
.
element
.
getElementsByClassName
(
"
back_link
"
)[
0
].
href
=
result_list
[
2
];
// Update the navigation panel
// Update the navigation panel
// Clear the previous rendering
// Clear the previous rendering
while
(
nav_element
.
firstChild
)
{
while
(
nav_element
.
firstChild
)
{
...
...
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