1
0
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:
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

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