diff --git a/backend/controllers/FeedbackController.php b/backend/controllers/FeedbackController.php index 24bd976..eedddec 100644 --- a/backend/controllers/FeedbackController.php +++ b/backend/controllers/FeedbackController.php @@ -52,12 +52,18 @@ ], 'status' => [ 'type' => Index::STATUS_COL, + ], + 'created_at' => [ + 'type' => Index::DATETIME_COL ] ], 'model' => Feedback::className(), 'hasLanguage' => false, 'enableMassDelete' => true, 'modelPrimaryKey' => 'id', + 'defaultSort' => [ + 'created_at' => 'DESC' + ] ], 'view' => [ 'class' => View::className(), diff --git a/frontend/web/js/gmaps.init.js b/frontend/web/js/gmaps.init.js index 58e3d00..9ea6466 100755 --- a/frontend/web/js/gmaps.init.js +++ b/frontend/web/js/gmaps.init.js @@ -6,7 +6,7 @@ $( lat: parseFloat(window.lat), lng: parseFloat(window.lon) }; - + console.log(myLatLng); var map = new google.maps.Map( document.getElementById('map'), { center: myLatLng, -- libgit2 0.21.4