Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
ba52f8a2
Commit
ba52f8a2
authored
Jun 07, 2017
by
Téo Vasseur
Browse files
{info,main}.js : set info id in constructor
As for other views
parent
626d4a44
Pipeline
#3065
passed with stages
in 2 minutes and 47 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
browser/js/info.js
View file @
ba52f8a2
...
...
@@ -21,8 +21,9 @@
* along with "Vidjil". If not, see <http://www.gnu.org/licenses/>
*/
function
Info
(
model
,
builder
)
{
function
Info
(
id
,
model
,
builder
)
{
View
.
call
(
this
,
model
);
this
.
id
=
id
;
this
.
builder
=
builder
;
}
...
...
@@ -31,7 +32,7 @@ Info.prototype = {
init
:
function
()
{
var
self
=
this
try
{
var
parent
=
document
.
getElementById
(
"
info
"
);
var
parent
=
document
.
getElementById
(
this
.
id
);
parent
.
removeAllChildren
();
var
patient_info
=
typeof
this
.
m
.
info
!=
'
undefined
'
?
this
.
m
.
info
:
""
;
...
...
browser/js/main.js
View file @
ba52f8a2
...
...
@@ -75,7 +75,7 @@ try {
* TODO replace with a menu and info view
*/
var
builder
=
new
Builder
(
m
,
db
);
var
info
=
new
Info
(
m
,
builder
);
var
info
=
new
Info
(
"
info
"
,
m
,
builder
);
/* [WIP] Shortcut (optional)
...
...
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