Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,23 +122,26 @@ function showSelects(val) {
}

if (prev.typeid) {
var typeid = prev.typeid;
$('#fields-assign select.type-select-' + prev.typeid).each(function (n, obj) {
$(obj).val(prevParams[typeid][n]);
});
putValues(prev.typeid)
}

}

function checkKey(value) {
function putValues(val) {

var typeid = val;
$('#fields-assign select.type-select-' + val).each(function (n, obj) {
$(obj).val(prevParams[typeid][n]);
});

var result = false;
var selects = $('#fields-assign select.type-select:visible');
}

function checkKey(value) {
selects.each(function () {
if ($(this).val() == value) {
result = true;
return false;

} else if (value == 'jbprice' && $(this).val().indexOf(value) != -1 ||
value == 'jbprice' && $(this).val().indexOf('price_sku') != -1) {
result = true;
Expand Down