mirror of
https://github.com/processwire/processwire.git
synced 2025-08-14 02:34:24 +02:00
Fix issue processwire/processwire-issues#1763
This commit is contained in:
@@ -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
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user