mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 18:24:57 +02:00
Minor JS adjustments
This commit is contained in:
@@ -1145,6 +1145,10 @@ function InputfieldRepeater($) {
|
||||
});
|
||||
|
||||
$(this).closest('.InputfieldRepeater').trigger('sorted', [ ui.item ]);
|
||||
},
|
||||
|
||||
update: function(e, ui) {
|
||||
$inputfieldRepeater.addClass('InputfieldStateChanged');
|
||||
}
|
||||
};
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@@ -1,4 +1,3 @@
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
/**
|
||||
|
File diff suppressed because one or more lines are too long
@@ -572,7 +572,7 @@ class InputfieldFile extends Inputfield implements InputfieldItemList, Inputfiel
|
||||
protected function renderListReady($value) {
|
||||
if(!$this->renderValueMode) {
|
||||
// if just rendering the files list (as opposed to saving it), delete any temp files that may have accumulated
|
||||
if(!$this->overwrite && !count($_POST) && !$this->isAjax && !$this->uploadOnlyMode) {
|
||||
if(!$this->overwrite && !count($_POST) && !$this->isAjax && !$this->uploadOnlyMode && !$this->wire()->config->ajax) {
|
||||
$input = $this->wire()->input;
|
||||
// don't delete files when in render single field or fields mode
|
||||
if(!$input->get('field') && !$input->get('fields')) {
|
||||
|
@@ -2341,10 +2341,12 @@ function InputfieldImage($) {
|
||||
|
||||
$(document).on('reloaded', '.InputfieldImage', function() {
|
||||
var $inputfield = $(this);
|
||||
$inputfield.removeClass('InputfieldImageInit');
|
||||
initInputfield($inputfield);
|
||||
initUploadHTML5($inputfield);
|
||||
//console.log('InputfieldImage reloaded');
|
||||
Inputfields.init($inputfield);
|
||||
$('.InputfieldImageListToggle--active', $inputfield).click();
|
||||
}).on('wiretabclick', function(e, $newTab, $oldTab) {
|
||||
$newTab.find(".InputfieldImage").each(function() {
|
||||
initInputfield($(this));
|
||||
|
File diff suppressed because one or more lines are too long
@@ -55,7 +55,7 @@ class InputfieldImage extends InputfieldFile implements InputfieldItemList, Inpu
|
||||
return array(
|
||||
'title' => __('Images', __FILE__), // Module Title
|
||||
'summary' => __('One or more image uploads (sortable)', __FILE__), // Module Summary
|
||||
'version' => 124,
|
||||
'version' => 125,
|
||||
'permanent' => true,
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user