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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97104ee323ae38e43a71acf2da183a8a0f367c74
4
- data.tar.gz: 40efbd7f707c3dc7b0e21889b458370963f2096a
3
+ metadata.gz: ad58aa3757943d6b64d75f987145366cc6a351c7
4
+ data.tar.gz: 4c85052d4fee23f74e642a00fd6841ce66b27f3f
5
5
  SHA512:
6
- metadata.gz: d8c52788fcae7da9598755f28b5467f80b0d52ccaa77e50b8f0352be3b1e4481c942a0bc72d5c02c0077dedd1021ea8066a2987a8d40d69a44f16f049e6f28e3
7
- data.tar.gz: d7b760f5dd25f50ff3be8ab774191ac37ce798c15f5d7dba4ab95fbf847de05cc1fd8ace1477de87de72b6f3d37177e0ffb5404d897bf10e4aa817261f5ddb32
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:801_fill_map_settings
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
- if (_$container.data('init_position_top') == undefined) {
109
- // запомним начальную позицию
110
- _$container.data('init_position_top', _$container.css("top"));
111
- _$container.data('init_position_left', _$container.css("left"));
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
  /**
@@ -1,3 +1,3 @@
1
1
  module C80MapFloors
2
- VERSION = '0.1.0.23'
2
+ VERSION = '0.1.0.24'
3
3
  end
data/locations.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "mapwidth": "3000",
3
+ "mapheight": "1558",
4
+ "img": "/uploads/map/none.jpg"
5
+ }
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.23
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-03-30 00:00:00.000000000 Z
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