Commit be50cffca6e702f52dfb4af79e7224ebe5f206d2

Authored by Anastasia
1 parent 06a9fe94

- address

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