mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
Merge branch 'master' of https://github.com/openclassify/openclassify
This commit is contained in:
commit
9edd8b0f23
@ -114,6 +114,11 @@ class VisiosoftModuleAdvsCreateAdvsFields extends Migration
|
|||||||
'order' => 'anomaly.field_type.integer',
|
'order' => 'anomaly.field_type.integer',
|
||||||
'price' => [
|
'price' => [
|
||||||
'type' => 'visiosoft.field_type.decimal',
|
'type' => 'visiosoft.field_type.decimal',
|
||||||
|
'config' => [
|
||||||
|
'decimal' => 2,
|
||||||
|
'separator' => '.',
|
||||||
|
'point' => ','
|
||||||
|
],
|
||||||
],
|
],
|
||||||
'currency' => [
|
'currency' => [
|
||||||
'type' => 'anomaly.field_type.select',
|
'type' => 'anomaly.field_type.select',
|
||||||
|
|||||||
@ -20,8 +20,7 @@ filter.getCats = (catId, divId) => {
|
|||||||
hideLoader()
|
hideLoader()
|
||||||
if (response == 0) {
|
if (response == 0) {
|
||||||
stop();
|
stop();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
response.forEach(function (options) {
|
response.forEach(function (options) {
|
||||||
$(catId).append("<option value=" + options.id + ">" + options.name + "</option>");
|
$(catId).append("<option value=" + options.id + ">" + options.name + "</option>");
|
||||||
$(catId).closest('li').show();
|
$(catId).closest('li').show();
|
||||||
@ -35,9 +34,11 @@ filter.getCats = (catId, divId) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
if ($('input[name="slug"]').val() == "") {
|
||||||
$("select[name='currency']").val(default_currency);
|
$("select[name='currency']").val(default_currency);
|
||||||
if(default_GET == 1)
|
}
|
||||||
{
|
|
||||||
|
if (default_GET == 1) {
|
||||||
$('#is_get_adv').prop('checked', true);
|
$('#is_get_adv').prop('checked', true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -49,6 +50,7 @@ $(document).on('change', '.sub_cats', function(){
|
|||||||
} else
|
} else
|
||||||
filter.callCats(divId);
|
filter.callCats(divId);
|
||||||
});
|
});
|
||||||
|
|
||||||
function getAdv() {
|
function getAdv() {
|
||||||
if (document.getElementById('getMethod').checked) {
|
if (document.getElementById('getMethod').checked) {
|
||||||
var val = $('input[name=price]').val();
|
var val = $('input[name=price]').val();
|
||||||
@ -58,6 +60,7 @@ function getAdv(){
|
|||||||
$("#getprice").remove();
|
$("#getprice").remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$('input[name=price]').bind('keyup change', function () {
|
$('input[name=price]').bind('keyup change', function () {
|
||||||
var val = $('input[name=price]').val();
|
var val = $('input[name=price]').val();
|
||||||
val = val * 90 / 100;
|
val = val * 90 / 100;
|
||||||
@ -65,10 +68,8 @@ $('input[name=price]').bind('keyup change', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$('input[name="price"]').on('click', function () {
|
$('input[name="price"]').on('click', function () {
|
||||||
if($(this).val() == "0.00")
|
if ($(this).val() == "0.00") {
|
||||||
{
|
|
||||||
$(this).val("");
|
$(this).val("");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
{% include "visiosoft.module.advs::list/partials/breadcrumb" %}
|
{% include "visiosoft.module.advs::list/partials/breadcrumb" %}
|
||||||
<!-- breadcrumb -->
|
<!-- breadcrumb -->
|
||||||
|
|
||||||
<div class="row my-3">
|
<div class="row my-3 adv-list-wrapper">
|
||||||
<div class="col-md-3 d-none d-sm-block filter-section">
|
<div class="col-md-3 d-none d-sm-block filter-section">
|
||||||
{% include "visiosoft.module.advs::list/partials/list-filter" %}
|
{% include "visiosoft.module.advs::list/partials/list-filter" %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user