1
0
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:
Ryan Cramer
2016-10-07 11:06:56 -04:00
parent ba44b4bf20
commit 0d6d2ef6e4
2 changed files with 3 additions and 3 deletions

View File

@@ -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