Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Max Mecklin
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3563bff6
authored
Dec 04, 2014
by
Antti Jaakkola
Committed by
Tuomas Riihimäki
Dec 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed little brain farts
1 parent
7ea72516
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
code/moya-web/WebContent/resources/seatjs/seatmap.js
code/moya-web/WebContent/resources/seatjs/seatmap.js
View file @
3563bff
...
...
@@ -38,6 +38,7 @@ function placemap(opts)
moyaurl
:
opts
.
moyaurl
,
map_id
:
opts
.
map_id
,
onclick
:
opts
.
onclick
,
editclick
:
opts
.
editclick
,
clicked_place
:
undefined
,
locale
:
opts
.
locale
||
'fi'
};
...
...
@@ -60,7 +61,7 @@ function placemap(opts)
};
var
guide_layer
=
map_layer
=
px
.
element
.
append
(
"g"
).
attr
(
"id"
,
"guides"
);
var
guide_layer
=
px
.
element
.
append
(
"g"
).
attr
(
"id"
,
"guides"
);
// Create background
var
background
=
px
.
element
.
append
(
"rect"
)
.
attr
(
"class"
,
"background_2"
)
...
...
@@ -71,7 +72,7 @@ function placemap(opts)
// Define layers to use
var
map_layer
=
px
.
element
.
append
(
"g"
).
attr
(
"id"
,
"places"
);
var
edit_layer
=
map_layer
=
px
.
element
.
append
(
"g"
).
attr
(
"id"
,
"edit"
);
var
edit_layer
=
px
.
element
.
append
(
"g"
).
attr
(
"id"
,
"edit"
);
var
clicked
=
false
;
...
...
@@ -316,7 +317,7 @@ function placemap(opts)
.
attr
(
"width"
,
10
)
.
attr
(
"height"
,
10
)
.
attr
(
"fill"
,
"#111"
);
px
.
editclick
(
pos
.
x
,
pos
.
y
);
px
.
editclick
(
pos
.
x
,
pos
.
y
);
}
else
{
edit_layer
.
selectAll
(
"circle"
).
remove
();
...
...
@@ -360,7 +361,7 @@ function placemap(opts)
px
.
update
=
function
()
{
d3
.
json
(
px
.
moyaurl
+
"/rest/placemap/v1/"
+
px
.
map_id
+
"/places"
,
function
(
data
)
{
draw_places
(
data
.
places
);
draw_places
(
data
.
places
,
true
);
});
};
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment