mirror of
https://github.com/processwire/processwire.git
synced 2025-08-07 07:16:51 +02:00
Add PR #274 via @hiboudev which fixes issue processwire/processwire-issues#1855 in InputfieldPageAutocomplete.js
Co-authored-by: hiboudev <hiboudev@gmail.com>
This commit is contained in:
@@ -381,10 +381,10 @@ var InputfieldPageAutocomplete = {
|
||||
|
||||
$children.each(function() {
|
||||
var v = parseInt($(this).children('.itemValue').text());
|
||||
if(v > 0) {
|
||||
value += ',' + v;
|
||||
} else if(v < 0) {
|
||||
value += ',' + v;
|
||||
if(v === 0) return;
|
||||
if(value.length) value += ',';
|
||||
value += v;
|
||||
if(v < 0) {
|
||||
addValue += $(this).children('.itemLabel').text() + "\n";
|
||||
}
|
||||
});
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user