mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 11:14:12 +02:00
Fix issue processwire/processwire-issues#1763
This commit is contained in:
@@ -365,8 +365,8 @@ function PageFrontEditInit($) {
|
|||||||
var viewURL = $('#pw-url').val();
|
var viewURL = $('#pw-url').val();
|
||||||
viewURL += (viewURL.indexOf('?') > -1 ? '&' : '?') + 'pw_edit_fields=' + target.attr('data-fields');
|
viewURL += (viewURL.indexOf('?') > -1 ? '&' : '?') + 'pw_edit_fields=' + target.attr('data-fields');
|
||||||
setBusy(true);
|
setBusy(true);
|
||||||
|
|
||||||
target.on('load', viewURL + ' #' + targetID, {}, function() {
|
target.load(viewURL + ' #' + targetID, {}, function() {
|
||||||
var t = $(this);
|
var t = $(this);
|
||||||
var children = t.children();
|
var children = t.children();
|
||||||
if(children.length) {
|
if(children.length) {
|
||||||
|
File diff suppressed because one or more lines are too long
@@ -798,7 +798,7 @@ class PageFrontEdit extends WireData implements Module {
|
|||||||
// jQuery
|
// jQuery
|
||||||
$loadItems[] = array(
|
$loadItems[] = array(
|
||||||
'test' => "function() { return (typeof jQuery == 'undefined'); }",
|
'test' => "function() { return (typeof jQuery == 'undefined'); }",
|
||||||
'file' => $config->urls('JqueryCore') . 'JqueryCore.js',
|
'file' => $config->urls('JqueryCore') . ($config->debug === 'dev' ? 'dev/' : '') . 'JqueryCore.js',
|
||||||
'after' => "function() { " .
|
'after' => "function() { " .
|
||||||
"jQuery.noConflict(); " .
|
"jQuery.noConflict(); " .
|
||||||
"}"
|
"}"
|
||||||
@@ -812,7 +812,7 @@ class PageFrontEdit extends WireData implements Module {
|
|||||||
"});" .
|
"});" .
|
||||||
"return (typeof jQuery.ui == 'undefined'); " .
|
"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
|
// add in our PageFrontEdit.js file
|
||||||
@@ -1313,6 +1313,3 @@ class PageFrontEdit extends WireData implements Module {
|
|||||||
return $unformatted;
|
return $unformatted;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user