c80_map_floors 0.1.0.23 → 0.1.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -1
- data/app/assets/javascripts/src/main.js +1 -0
- data/app/assets/javascripts/view/search_gui.js +9 -7
- data/lib/c80_map_floors/version.rb +1 -1
- data/locations.json +5 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad58aa3757943d6b64d75f987145366cc6a351c7
|
4
|
+
data.tar.gz: 4c85052d4fee23f74e642a00fd6841ce66b27f3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f261643c05c7ad2faf8c867f80d753e6fd79e7865c79a8f3217924cb07aa0817df21ae045f4c891b5aaaf20254c46e61c39c44738cbd088b87aa739ff7793c5d
|
7
|
+
data.tar.gz: 7a4dc5da0b76fab049104be0edb4c55fbf3c3eb4d3c9085f3799a5a58d32789834862de04871a6f5e309d7d832f5f2d79a334c936b443a9b4e698d047ac36b2f
|
data/README.md
CHANGED
@@ -39,12 +39,27 @@ Add this to `routes.rb`:
|
|
39
39
|
|
40
40
|
# Configure
|
41
41
|
|
42
|
+
Migrate:
|
43
|
+
|
44
|
+
```
|
45
|
+
$ mi
|
46
|
+
```
|
47
|
+
|
42
48
|
Use seeds:
|
43
49
|
|
44
50
|
```
|
45
|
-
$ rake db:seed:
|
51
|
+
$ rake db:seed:c80_map_floors_01_fill_map_settings
|
46
52
|
```
|
47
53
|
|
54
|
+
Create `public/locations.json`:
|
55
|
+
|
56
|
+
```
|
57
|
+
{
|
58
|
+
"mapwidth": "3000",
|
59
|
+
"mapheight": "1558",
|
60
|
+
"img": "/uploads/map/none.jpg"
|
61
|
+
}
|
62
|
+
```
|
48
63
|
|
49
64
|
## Start
|
50
65
|
|
@@ -853,6 +853,7 @@ var InitMap = function (params) {
|
|
853
853
|
* можно было отобразить характеристики Здания родителя C80Rent:Building.
|
854
854
|
*/
|
855
855
|
self.draw_childs = function (childs, parent_hash) {
|
856
|
+
if (childs == undefined) return;
|
856
857
|
console.log("<Map.draw_childs>");
|
857
858
|
|
858
859
|
//var ip;
|
@@ -104,14 +104,16 @@ function SearchGUI(link_to_map) {
|
|
104
104
|
* Вернуть родительский div-контейнер в начальную (исходную, `нормальную`) позицию.
|
105
105
|
*/
|
106
106
|
this.position_init = function () {
|
107
|
-
// если
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
107
|
+
if (_$container != null) { // может быть null, если вдруг gui поиска не пришёл с сервера
|
108
|
+
// если еще ниразу никуда не сдвигали с начальной позиции
|
109
|
+
if (_$container.data('init_position_top') == undefined) {
|
110
|
+
// запомним начальную позицию
|
111
|
+
_$container.data('init_position_top', _$container.css("top"));
|
112
|
+
_$container.data('init_position_left', _$container.css("left"));
|
113
|
+
}
|
114
|
+
_$container.css("top", _$container.data('init_position_top'));
|
115
|
+
_$container.css("left", _$container.data('init_position_left'));
|
112
116
|
}
|
113
|
-
_$container.css("top", _$container.data('init_position_top'));
|
114
|
-
_$container.css("left", _$container.data('init_position_left'));
|
115
117
|
};
|
116
118
|
|
117
119
|
/**
|
data/locations.json
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: c80_map_floors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- C80609A
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -220,6 +220,7 @@ files:
|
|
220
220
|
- lib/c80_map_floors/version.rb
|
221
221
|
- lib/integer.rb
|
222
222
|
- lib/search_result.rb
|
223
|
+
- locations.json
|
223
224
|
homepage: http://www.vorsa-park.ru
|
224
225
|
licenses:
|
225
226
|
- MIT
|