1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-14 02:34:24 +02:00
This commit is contained in:
Ryan Cramer
2023-06-22 11:40:23 -04:00
parent d089e07a63
commit ead96474c6
3 changed files with 5 additions and 8 deletions

View File

@@ -365,8 +365,8 @@ function PageFrontEditInit($) {
var viewURL = $('#pw-url').val();
viewURL += (viewURL.indexOf('?') > -1 ? '&' : '?') + 'pw_edit_fields=' + target.attr('data-fields');
setBusy(true);
target.on('load', viewURL + ' #' + targetID, {}, function() {
target.load(viewURL + ' #' + targetID, {}, function() {
var t = $(this);
var children = t.children();
if(children.length) {

File diff suppressed because one or more lines are too long

View File

@@ -798,7 +798,7 @@ class PageFrontEdit extends WireData implements Module {
// jQuery
$loadItems[] = array(
'test' => "function() { return (typeof jQuery == 'undefined'); }",
'file' => $config->urls('JqueryCore') . 'JqueryCore.js',
'file' => $config->urls('JqueryCore') . ($config->debug === 'dev' ? 'dev/' : '') . 'JqueryCore.js',
'after' => "function() { " .
"jQuery.noConflict(); " .
"}"
@@ -812,7 +812,7 @@ class PageFrontEdit extends WireData implements Module {
"});" .
"return (typeof jQuery.ui == 'undefined'); " .
"}",
'file' => $config->urls('JqueryUI') . 'JqueryUI.js',
'file' => $config->urls('JqueryUI') . ($config->debug === 'dev' ? 'dev/' : '') . 'JqueryUI.js'
);
// add in our PageFrontEdit.js file
@@ -1313,6 +1313,3 @@ class PageFrontEdit extends WireData implements Module {
return $unformatted;
}
}