diff --git a/resources/assets/js/views/modules/apps.js b/resources/assets/js/views/modules/apps.js index 31ba64c27..977f2a4ad 100644 --- a/resources/assets/js/views/modules/apps.js +++ b/resources/assets/js/views/modules/apps.js @@ -14,12 +14,28 @@ import Form from './../../plugins/form'; const app = new Vue({ el: '#app', + mixins: [ Global ], + data: function () { return { form: new Form('form-app') } + }, + + methods: { + onChangeCategory(category) { + let path = document.getElementById('category_page').value; + + if (category) { + path += '/' + encodeURIComponent(category); + } else { + path = app_home; + } + + location = path; + } } }); diff --git a/resources/assets/js/views/modules/item.js b/resources/assets/js/views/modules/item.js index 844f3b0ac..537769ec1 100644 --- a/resources/assets/js/views/modules/item.js +++ b/resources/assets/js/views/modules/item.js @@ -47,6 +47,18 @@ const app = new Vue({ }, methods: { + onChangeCategory(category) { + let path = document.getElementById('category_page').value; + + if (category) { + path += '/' + encodeURIComponent(category); + } else { + path = app_home; + } + + location = path; + }, + onGetReviews (path, page) { axios.post(url + '/apps/' + app_slug + '/reviews', { patth: path, diff --git a/resources/views/modules/my/index.blade.php b/resources/views/modules/my/index.blade.php index 1c2d02162..292ee8cc6 100644 --- a/resources/views/modules/my/index.blade.php +++ b/resources/views/modules/my/index.blade.php @@ -36,3 +36,7 @@ @endif @endsection + +@push('scripts_start') + +@endpush diff --git a/resources/views/modules/tiles/index.blade.php b/resources/views/modules/tiles/index.blade.php index 93068041b..df580c9ca 100644 --- a/resources/views/modules/tiles/index.blade.php +++ b/resources/views/modules/tiles/index.blade.php @@ -40,3 +40,8 @@ @endif @endsection + +@push('scripts_start') + +@endpush + diff --git a/resources/views/partials/modules/bar.blade.php b/resources/views/partials/modules/bar.blade.php index 3a517bfc3..6492b9a8e 100644 --- a/resources/views/partials/modules/bar.blade.php +++ b/resources/views/partials/modules/bar.blade.php @@ -4,7 +4,16 @@