mirror of
https://github.com/processwire/processwire.git
synced 2025-08-21 05:51:41 +02:00
Fix issue processwire/processwire-issues#756 make link modal files selection not require being open before it can be populated with files from page selection
This commit is contained in:
@@ -36,8 +36,10 @@ $(document).ready(function() {
|
||||
$fileSelect.append($option);
|
||||
});
|
||||
$wrap.find("p.notes strong").text(selectedPageData.url);
|
||||
if($fileSelect.is(":visible")) {
|
||||
$wrap.children().effect('highlight', {}, 500);
|
||||
$fileSelect.effect('bounce', {}, 50);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -94,7 +96,7 @@ $(document).ready(function() {
|
||||
selectedPageData.url = ProcessWire.config.urls.root + data.url.substring(1);
|
||||
selectedPageData.url = absoluteToRelativePath(selectedPageData.url);
|
||||
$linkPageURL.val(selectedPageData.url).change();
|
||||
if($fileSelect.is(":visible")) populateFileSelect(selectedPageData);
|
||||
populateFileSelect(selectedPageData); // was: if($fileSelect.is(":visible")) { ... }
|
||||
}
|
||||
|
||||
$(this).parents(".InputfieldInteger").children(".InputfieldHeader").click() // to close the field
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user