mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 07:47:00 +02:00
Fix issue processwire/processwire-issues#19 with InputfieldPageAutocomplete and selecting homepage, thanks for fix @BitPoet
This commit is contained in:
@@ -286,8 +286,8 @@ var InputfieldPageAutocomplete = {
|
||||
pageSelected: function($ol, page) {
|
||||
|
||||
var dup = false;
|
||||
|
||||
$ol.children('li').each(function() {
|
||||
|
||||
$ol.children('li:not(.itemTemplate)').each(function() {
|
||||
var v = parseInt($(this).children('.itemValue').text());
|
||||
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