mirror of
https://github.com/processwire/processwire.git
synced 2025-08-24 07:13:08 +02:00
Various minor code updates
This commit is contained in:
@@ -166,6 +166,7 @@ class FieldtypeRepeater extends Fieldtype implements ConfigurableModule {
|
||||
$user = $this->wire()->user;
|
||||
$config = $this->wire()->config;
|
||||
$input = $this->wire()->input;
|
||||
$modules = $this->wire()->modules;
|
||||
$inEditor = $process == 'ProcessPageEdit' || $process == 'ProcessProfile';
|
||||
$isSuperuser = $user->isSuperuser();
|
||||
|
||||
@@ -212,7 +213,11 @@ class FieldtypeRepeater extends Fieldtype implements ConfigurableModule {
|
||||
$this->addHookAfter('PagePermissions::pageEditable', $this, 'hookPagePermissionsPageEditableAjax');
|
||||
}
|
||||
|
||||
$this->addHookBefore('PageFinder::getQuery', $this, 'hookPageFinderGetQuery');
|
||||
$this->addHookBefore('PageFinder::getQuery', $this, 'hookPageFinderGetQuery');
|
||||
|
||||
$class = $this->className() . 'Matrix';
|
||||
if($this->useLazy && $modules->isInstalled($class)) $modules->get($class);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -303,8 +303,7 @@
|
||||
var $img = jQuery("#selected_image", $i);
|
||||
|
||||
$iframe.dialog("disable");
|
||||
$iframe.setTitle("<i class='fa fa-fw fa-spin fa-spinner'></i> " +
|
||||
ProcessWire.config.InputfieldCKEditor.pwimage.savingNote); // Saving Image
|
||||
$iframe.setTitle(ProcessWire.config.InputfieldCKEditor.pwimage.savingNote); // Saving Image
|
||||
$img.removeClass("resized");
|
||||
|
||||
var width = $img.attr('width');
|
||||
@@ -352,7 +351,7 @@
|
||||
];
|
||||
|
||||
$iframe.setButtons(buttons);
|
||||
$iframe.setTitle("<i class='fa fa-fw fa-picture-o'></i> " + $i.find('title').html());
|
||||
$iframe.setTitle($i.find('title').html());
|
||||
|
||||
} else {
|
||||
buttons = [];
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user