mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 00:37:02 +02:00
Fix issue processwire/processwire-issues#19 with InputfieldPageAutocomplete and selecting homepage, thanks for fix @BitPoet
This commit is contained in:
@@ -287,7 +287,7 @@ var InputfieldPageAutocomplete = {
|
|||||||
|
|
||||||
var dup = false;
|
var dup = false;
|
||||||
|
|
||||||
$ol.children('li').each(function() {
|
$ol.children('li:not(.itemTemplate)').each(function() {
|
||||||
var v = parseInt($(this).children('.itemValue').text());
|
var v = parseInt($(this).children('.itemValue').text());
|
||||||
if(v == page.page_id) dup = $(this);
|
if(v == page.page_id) dup = $(this);
|
||||||
});
|
});
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user