fix default currency problem

This commit is contained in:
vedatakd 2020-03-16 13:16:05 +03:00
parent 6ed0baac4a
commit 091e4586ac

View File

@ -20,8 +20,7 @@ filter.getCats = (catId, divId) => {
hideLoader()
if (response == 0) {
stop();
}
else {
} else {
response.forEach(function (options) {
$(catId).append("<option value=" + options.id + ">" + options.name + "</option>");
$(catId).closest('li').show();
@ -35,9 +34,11 @@ filter.getCats = (catId, divId) => {
};
$(document).ready(function () {
if ($('input[name="slug"]').val() == "") {
$("select[name='currency']").val(default_currency);
if(default_GET == 1)
{
}
if (default_GET == 1) {
$('#is_get_adv').prop('checked', true);
}
});
@ -49,6 +50,7 @@ $(document).on('change', '.sub_cats', function(){
} else
filter.callCats(divId);
});
function getAdv() {
if (document.getElementById('getMethod').checked) {
var val = $('input[name=price]').val();
@ -58,6 +60,7 @@ function getAdv(){
$("#getprice").remove();
}
}
$('input[name=price]').bind('keyup change', function () {
var val = $('input[name=price]').val();
val = val * 90 / 100;
@ -65,10 +68,8 @@ $('input[name=price]').bind('keyup change', function () {
});
$('input[name="price"]').on('click', function () {
if($(this).val() == "0.00")
{
if ($(this).val() == "0.00") {
$(this).val("");
}
})