Commit be50cffca6e702f52dfb4af79e7224ebe5f206d2

Authored by Anastasia
1 parent 06a9fe94

- address

backend/controllers/FeedbackController.php
... ... @@ -52,12 +52,18 @@
52 52 ],
53 53 'status' => [
54 54 'type' => Index::STATUS_COL,
  55 + ],
  56 + 'created_at' => [
  57 + 'type' => Index::DATETIME_COL
55 58 ]
56 59 ],
57 60 'model' => Feedback::className(),
58 61 'hasLanguage' => false,
59 62 'enableMassDelete' => true,
60 63 'modelPrimaryKey' => 'id',
  64 + 'defaultSort' => [
  65 + 'created_at' => 'DESC'
  66 + ]
61 67 ],
62 68 'view' => [
63 69 'class' => View::className(),
... ...
frontend/web/js/gmaps.init.js
... ... @@ -6,7 +6,7 @@ $(
6 6 lat: parseFloat(window.lat),
7 7 lng: parseFloat(window.lon)
8 8 };
9   -
  9 + console.log(myLatLng);
10 10 var map = new google.maps.Map(
11 11 document.getElementById('map'), {
12 12 center: myLatLng,
... ...