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
32357c15
Commit
32357c15
authored
Jul 01, 2015
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UTSTUTT changes: update static version
parent
0bc5d2df
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
9 deletions
+35
-9
dream/platform/static/dream/index.html
dream/platform/static/dream/index.html
+2
-1
dream/platform/static/dream/index.js
dream/platform/static/dream/index.js
+32
-7
dream/platform/static/manifest.appcache
dream/platform/static/manifest.appcache
+1
-1
No files found.
dream/platform/static/dream/index.html
View file @
32357c15
...
@@ -68,9 +68,10 @@
...
@@ -68,9 +68,10 @@
<div
data-role=
"controlgroup"
data-type=
"horizontal"
class=
"ui-btn-right"
>
<div
data-role=
"controlgroup"
data-type=
"horizontal"
class=
"ui-btn-right"
>
<a
data-icon=
"forward"
<a
data-icon=
"forward"
class=
"next_step_link ui-btn ui-icon-forward ui-btn-icon-right"
>
Next Step
</a>
class=
"next_step_link ui-btn ui-icon-forward ui-btn-icon-right"
>
Continue
</a>
<a
data-icon=
"forward"
<a
data-icon=
"forward"
class=
"next_link ui-btn ui-icon-forward ui-btn-icon-right"
>
Next
</a>
class=
"next_link ui-btn ui-icon-forward ui-btn-icon-right"
>
Next
</a>
</div>
</div>
</header>
</header>
...
...
dream/platform/static/dream/index.js
View file @
32357c15
...
@@ -79,20 +79,37 @@
...
@@ -79,20 +79,37 @@
});
});
}
}
function
getNextStepLink
(
gadget
,
portal_type
,
options
)
{
function
getNextStepLink
(
gadget
,
portal_type
,
options
)
{
if
(
options
.
action
===
"
view_machine_shift_spreadsheet
"
)
{
//if (options.action === "view_machine_shift_spreadsheet") {
if
(
options
.
action
===
"
view
"
)
{
var
forward_kw
=
{
var
forward_kw
=
{
action
:
"
view_
run_simulation
"
,
action
:
"
view_
machine_shift_spreadsheet
"
,
id
:
options
.
id
id
:
options
.
id
};
};
return
gadget
.
aq_pleasePublishMyState
(
forward_kw
);
return
gadget
.
aq_pleasePublishMyState
(
forward_kw
);
}
else
{
}
else
if
(
options
.
action
===
"
view_machine_shift_spreadsheet
"
)
{
return
false
;
var
forward_kw1
=
{
action
:
"
view_operator_shift_spreadsheet
"
,
id
:
options
.
id
};
return
gadget
.
aq_pleasePublishMyState
(
forward_kw1
);
}
else
if
(
options
.
action
===
"
view_operator_shift_spreadsheet
"
)
{
var
forward_kw2
=
{
action
:
"
view_wip_spreadsheet
"
,
id
:
options
.
id
};
return
gadget
.
aq_pleasePublishMyState
(
forward_kw2
);
}
else
if
(
options
.
action
===
"
view_wip_spreadsheet
"
)
{
var
forward_kw3
=
{
action
:
"
view_run_simulation
"
,
id
:
options
.
id
};
return
gadget
.
aq_pleasePublishMyState
(
forward_kw3
);
}
}
}
}
function
getTitle
(
gadget
,
portal_type
,
options
)
{
function
getTitle
(
gadget
,
portal_type
,
options
)
{
var
title
;
var
title
;
if
(
portal_type
===
"
Input Module
"
)
{
if
(
portal_type
===
"
Input Module
"
)
{
title
=
"
Documents
"
;
title
=
"
Document
a
s
"
;
}
else
if
(
portal_type
===
"
Input
"
)
{
}
else
if
(
portal_type
===
"
Input
"
)
{
title
=
gadget
.
getDeclaredGadget
(
"
jio
"
).
push
(
function
(
jio_gadget
)
{
title
=
gadget
.
getDeclaredGadget
(
"
jio
"
).
push
(
function
(
jio_gadget
)
{
return
jio_gadget
.
get
({
return
jio_gadget
.
get
({
...
@@ -329,17 +346,25 @@
...
@@ -329,17 +346,25 @@
var
button
=
gadget
.
props
.
element
.
getElementsByClassName
(
"
next_step_link
"
)[
0
];
var
button
=
gadget
.
props
.
element
.
getElementsByClassName
(
"
next_step_link
"
)[
0
];
$
(
button
).
hide
();
$
(
button
).
hide
();
var
idle_timer
;
var
idle_timer
;
var
stop_timer
;
function
resetTimer
()
{
function
resetTimer
()
{
clearTimeout
(
idle_timer
);
clearTimeout
(
idle_timer
);
idle_timer
=
setTimeout
(
function
()
{
idle_timer
=
setTimeout
(
function
()
{
$
(
button
).
show
();
$
(
button
).
show
();
},
idle_seconds
*
1
e3
);
},
idle_seconds
*
1
e3
);
}
}
function
hideButton
()
{
clearTimeout
(
stop_timer
);
stop_timer
=
setTimeout
(
function
()
{
$
(
button
).
hide
();
},
idle_seconds2
*
1
e3
);
}
if
(
next_step_link
!==
false
)
{
if
(
next_step_link
!==
false
)
{
button
.
href
=
next_step_link
;
button
.
href
=
next_step_link
;
var
idle_seconds
=
10
;
var
idle_seconds
=
5
;
$
(
document
.
body
).
on
(
"
keydown click
"
,
resetTimer
);
$
(
document
.
body
).
on
(
"
keydown click
"
,
resetTimer
);
resetTimer
();
var
idle_seconds2
=
12
;
$
(
document
.
body
).
on
(
"
keydown click
"
,
hideButton
);
}
else
{
}
else
{
$
(
document
.
body
).
off
(
"
keydown click
"
,
resetTimer
);
$
(
document
.
body
).
off
(
"
keydown click
"
,
resetTimer
);
}
}
...
...
dream/platform/static/manifest.appcache
View file @
32357c15
CACHE MANIFEST
CACHE MANIFEST
# This manifest was generated by grunt-manifest HTML5 Cache Manifest Generator
# This manifest was generated by grunt-manifest HTML5 Cache Manifest Generator
# Time:
Sun Apr 19 2015 23:09:42
GMT+0000 (GMT)
# Time:
Mon Jun 01 2015 11:42:11
GMT+0000 (GMT)
CACHE:
CACHE:
dream/InputModule_viewAddDocumentDialog.js
dream/InputModule_viewAddDocumentDialog.js
...
...
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