Merge pull request #528 from openclassify/dia

#1123 tregtaret.com search search bar changes.
This commit is contained in:
Ozcan Durak 2020-04-28 18:08:07 +03:00 committed by GitHub
commit 847399eccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 15 additions and 24 deletions

View File

@ -7,7 +7,6 @@ $('.edit-category-filter-modal').on('click', function () {
$('#categoryModal').modal('toggle');
})
function crud(params, url, type, callback) {
$.ajax({
type: type,
@ -143,7 +142,3 @@ $('.set_category').on('click', function () {
$('#filterModal').find('form').attr("action", '/advs/list');
$('#filterModal').modal('toggle');
})

View File

@ -63,11 +63,13 @@
</div>
</div>
</div>
<script>
var key = 1;
{% if not allCats %}
<script>
var key = 1;
$.each({{ mainCats|json_encode|raw }}, function (index, value) {
categories['cat' + key] = value.id;
key++;
});
</script>
$.each({{ mainCats|json_encode|raw }}, function (index, value) {
categories['cat' + key] = value.id;
key++;
});
</script>
{% endif %}

View File

@ -30,6 +30,7 @@
'checkboxes':checkboxes,
'topfields' : topfields,
'selectRange' : selectRange,
'selectImage' : selectImage,
'radio':radio,
'countries':countries,
'cities':cities,

View File

@ -60,15 +60,6 @@ class AdvsModuleServiceProvider extends AddonServiceProvider
* @type array|null
*/
protected $routes = [
// 'admin/advs/cf_values' => 'Visiosoft\AdvsModule\Http\Controller\Admin\CfValuesController@index',
// 'admin/advs/cf_values/create' => 'Visiosoft\AdvsModule\Http\Controller\Admin\CfValuesController@create',
// 'admin/advs/cf_values/edit/{id}' => 'Visiosoft\AdvsModule\Http\Controller\Admin\CfValuesController@edit',
// 'admin/advs/custom_field_advs' => 'Visiosoft\AdvsModule\Http\Controller\Admin\CustomFieldAdvsController@index',
// 'admin/advs/custom_field_advs/create' => 'Visiosoft\AdvsModule\Http\Controller\Admin\CustomFieldAdvsController@create',
// 'admin/advs/custom_field_advs/edit/{id}' => 'Visiosoft\AdvsModule\Http\Controller\Admin\CustomFieldAdvsController@edit',
// 'admin/advs/custom_fields' => 'Visiosoft\AdvsModule\Http\Controller\Admin\CustomFieldsController@index',
// 'admin/advs/custom_fields/create' => 'Visiosoft\AdvsModule\Http\Controller\Admin\CustomFieldsController@create',
// 'admin/advs/custom_fields/edit/{id}' => 'Visiosoft\AdvsModule\Http\Controller\Admin\CustomFieldsController@edit',
'admin/advs/advs' => 'Visiosoft\AdvsModule\Http\Controller\Admin\AdvsController@index',
'admin/advs/advs/create' => 'Visiosoft\AdvsModule\Http\Controller\Admin\AdvsController@create',
'admin/advs/advs/edit/{id}' => 'Visiosoft\AdvsModule\Http\Controller\Admin\AdvsController@edit',

View File

@ -257,6 +257,7 @@ class AdvsController extends PublicController
$subCats = $this->category_repository->getSubCatById($categoryId->id);
} else {
$mainCats = $this->category_repository->mainCats();
$allCats = true;
}
if ($isActiveCustomFields) {
@ -264,6 +265,7 @@ class AdvsController extends PublicController
$checkboxes = $returnvalues['checkboxes'];
$topfields = $returnvalues['topfields'];
$selectRange = $returnvalues['selectRange'];
$selectImage = $returnvalues['selectImage'];
$ranges = $returnvalues['ranges'];
$radio = $returnvalues['radio'];
}
@ -277,8 +279,8 @@ class AdvsController extends PublicController
$viewType = $this->requestHttp->cookie('viewType');
$compact = compact('advs', 'countries', 'mainCats', 'subCats', 'checkboxes', 'request', 'param',
'user', 'featured_advs', 'viewType', 'topfields', 'selectRange', 'ranges', 'seenList', 'searchedCountry',
'radio', 'categoryId', 'cityId');
'user', 'featured_advs', 'viewType', 'topfields', 'selectRange', 'selectImage', 'ranges', 'seenList',
'searchedCountry', 'radio', 'categoryId', 'cityId', 'allCats');
return $this->viewTypeBasedRedirect($viewType, $compact);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

View File

@ -1,6 +1,6 @@
.ads-box-image {
padding: 5px;
transition: transform 0.2s;
}
.ads-responsive-image {