mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -06:00
Merge pull request #528 from openclassify/dia
#1123 tregtaret.com search search bar changes.
This commit is contained in:
commit
847399eccf
@ -7,7 +7,6 @@ $('.edit-category-filter-modal').on('click', function () {
|
|||||||
$('#categoryModal').modal('toggle');
|
$('#categoryModal').modal('toggle');
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
function crud(params, url, type, callback) {
|
function crud(params, url, type, callback) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: type,
|
type: type,
|
||||||
@ -143,7 +142,3 @@ $('.set_category').on('click', function () {
|
|||||||
$('#filterModal').find('form').attr("action", '/advs/list');
|
$('#filterModal').find('form').attr("action", '/advs/list');
|
||||||
$('#filterModal').modal('toggle');
|
$('#filterModal').modal('toggle');
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -63,11 +63,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
{% if not allCats %}
|
||||||
var key = 1;
|
<script>
|
||||||
|
var key = 1;
|
||||||
|
|
||||||
$.each({{ mainCats|json_encode|raw }}, function (index, value) {
|
$.each({{ mainCats|json_encode|raw }}, function (index, value) {
|
||||||
categories['cat' + key] = value.id;
|
categories['cat' + key] = value.id;
|
||||||
key++;
|
key++;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
{% endif %}
|
||||||
|
|||||||
@ -30,6 +30,7 @@
|
|||||||
'checkboxes':checkboxes,
|
'checkboxes':checkboxes,
|
||||||
'topfields' : topfields,
|
'topfields' : topfields,
|
||||||
'selectRange' : selectRange,
|
'selectRange' : selectRange,
|
||||||
|
'selectImage' : selectImage,
|
||||||
'radio':radio,
|
'radio':radio,
|
||||||
'countries':countries,
|
'countries':countries,
|
||||||
'cities':cities,
|
'cities':cities,
|
||||||
|
|||||||
@ -60,15 +60,6 @@ class AdvsModuleServiceProvider extends AddonServiceProvider
|
|||||||
* @type array|null
|
* @type array|null
|
||||||
*/
|
*/
|
||||||
protected $routes = [
|
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' => 'Visiosoft\AdvsModule\Http\Controller\Admin\AdvsController@index',
|
||||||
'admin/advs/advs/create' => 'Visiosoft\AdvsModule\Http\Controller\Admin\AdvsController@create',
|
'admin/advs/advs/create' => 'Visiosoft\AdvsModule\Http\Controller\Admin\AdvsController@create',
|
||||||
'admin/advs/advs/edit/{id}' => 'Visiosoft\AdvsModule\Http\Controller\Admin\AdvsController@edit',
|
'admin/advs/advs/edit/{id}' => 'Visiosoft\AdvsModule\Http\Controller\Admin\AdvsController@edit',
|
||||||
|
|||||||
@ -257,6 +257,7 @@ class AdvsController extends PublicController
|
|||||||
$subCats = $this->category_repository->getSubCatById($categoryId->id);
|
$subCats = $this->category_repository->getSubCatById($categoryId->id);
|
||||||
} else {
|
} else {
|
||||||
$mainCats = $this->category_repository->mainCats();
|
$mainCats = $this->category_repository->mainCats();
|
||||||
|
$allCats = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($isActiveCustomFields) {
|
if ($isActiveCustomFields) {
|
||||||
@ -264,6 +265,7 @@ class AdvsController extends PublicController
|
|||||||
$checkboxes = $returnvalues['checkboxes'];
|
$checkboxes = $returnvalues['checkboxes'];
|
||||||
$topfields = $returnvalues['topfields'];
|
$topfields = $returnvalues['topfields'];
|
||||||
$selectRange = $returnvalues['selectRange'];
|
$selectRange = $returnvalues['selectRange'];
|
||||||
|
$selectImage = $returnvalues['selectImage'];
|
||||||
$ranges = $returnvalues['ranges'];
|
$ranges = $returnvalues['ranges'];
|
||||||
$radio = $returnvalues['radio'];
|
$radio = $returnvalues['radio'];
|
||||||
}
|
}
|
||||||
@ -277,8 +279,8 @@ class AdvsController extends PublicController
|
|||||||
$viewType = $this->requestHttp->cookie('viewType');
|
$viewType = $this->requestHttp->cookie('viewType');
|
||||||
|
|
||||||
$compact = compact('advs', 'countries', 'mainCats', 'subCats', 'checkboxes', 'request', 'param',
|
$compact = compact('advs', 'countries', 'mainCats', 'subCats', 'checkboxes', 'request', 'param',
|
||||||
'user', 'featured_advs', 'viewType', 'topfields', 'selectRange', 'ranges', 'seenList', 'searchedCountry',
|
'user', 'featured_advs', 'viewType', 'topfields', 'selectRange', 'selectImage', 'ranges', 'seenList',
|
||||||
'radio', 'categoryId', 'cityId');
|
'searchedCountry', 'radio', 'categoryId', 'cityId', 'allCats');
|
||||||
|
|
||||||
return $this->viewTypeBasedRedirect($viewType, $compact);
|
return $this->viewTypeBasedRedirect($viewType, $compact);
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB |
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
.ads-box-image {
|
.ads-box-image {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
transition: transform 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ads-responsive-image {
|
.ads-responsive-image {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user