1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 09:14:58 +02:00

Bump version to 3.0.144

This commit is contained in:
Ryan Cramer
2019-11-01 09:58:44 -04:00
parent d30a937b99
commit b3337d0110
4 changed files with 26 additions and 11 deletions

View File

@@ -44,7 +44,7 @@ class ProcessWire extends Wire {
* Reversion revision number
*
*/
const versionRevision = 143;
const versionRevision = 144;
/**
* Version suffix string (when applicable)

View File

@@ -375,6 +375,7 @@ class ProcessField extends Process implements ConfigurableModule {
ksort($fieldsByTag);
foreach($fieldsByTag as $tag => $fields) {
ksort($fields);
/** @var InputfieldMarkup $f */
$f = $this->modules->get('InputfieldMarkup');
$f->entityEncodeLabel = false;
$f->label = $caseTags[$tag];
@@ -407,7 +408,7 @@ class ProcessField extends Process implements ConfigurableModule {
$button->value = $this->labels['manage-tags'];
//$button->setSecondary();
$out .= $button->render();
$button = $this->modules->get('InputfieldButton');
$button->id = 'import_button';
$button->href = "./import/";
@@ -424,7 +425,7 @@ class ProcessField extends Process implements ConfigurableModule {
$button->setSecondary();
$out .= $button->render();
if($this->input->nosave) {
if($this->input->get('nosave')) {
$session->removeFor($this, 'filterTemplate');
$session->removeFor($this, 'filterFieldtype');
$session->removeFor($this, 'filterShowSystem');
@@ -1129,7 +1130,6 @@ class ProcessField extends Process implements ConfigurableModule {
$form->appendMarkup .=
"<script>" .
"jQuery(document).ready(function() { " .
//"Inputfields.show($('#$id')); " .
"Inputfields.find('#$id'); " .
"});" .
"</script>";
@@ -1186,7 +1186,6 @@ class ProcessField extends Process implements ConfigurableModule {
} else {
$f->label = $this->_('Setting overrides by template');
$f->notes = $this->_('To edit an override setting or override other settings, edit any template and click the field name in the fields list.') . ' ';
if(count($allChanges)) $f->notes .= $this->_('You may also click links above to edit in context, but note that any changes you make here will NOT be reflected in the table above until you save or reload this page.') . ' ';
$f->notes .= $this->_('To adjust what settings are allowed for overrides, see the field below.');
}
$tab->add($f);
@@ -2687,7 +2686,7 @@ class ProcessField extends Process implements ConfigurableModule {
$fieldOriginal = $this->wire('fields')->get($field->id);
$changes = array();
$isInContext = $this->fieldgroup || $this->contextNamespace;
// $isInContext = $this->fieldgroup || $this->contextNamespace;
$labels = array(
'on' => $this->_('On'),

View File

@@ -142,6 +142,12 @@ var Inputfields = {
*/
processingIfs: false,
/**
* Default duration (in MS) for certain visual animations
*
*/
defaultDuration: 0,
/**
* Initialize all Inputfields located within $target
*
@@ -179,7 +185,7 @@ var Inputfields = {
if($inputfield.hasClass('InputfieldStateToggling')) return $inputfield;
if(typeof open == "undefined" || open === null) open = isCollapsed;
if(typeof duration == "undefined") duration = 100;
if(typeof duration == "undefined") duration = this.defaultDuration;
function completed() {
if(typeof callback != "undefined") callback($inputfield, open, duration);
@@ -256,10 +262,20 @@ var Inputfields = {
// handle either open or close
if(open && isCollapsed) {
$inputfield.addClass('InputfieldStateToggling').trigger('openReady');
$inputfield.toggleClass('InputfieldStateCollapsed', duration, opened);
if(duration && jQuery.ui) {
$inputfield.toggleClass('InputfieldStateCollapsed', duration, opened);
} else {
$inputfield.removeClass('InputfieldStateCollapsed');
opened();
}
} else if(!open && !isCollapsed) {
$inputfield.addClass('InputfieldStateToggling').trigger('closeReady');
$inputfield.toggleClass('InputfieldStateCollapsed', duration, closed);
if(duration && jQuery.ui) {
$inputfield.toggleClass('InputfieldStateCollapsed', duration, closed);
} else {
$inputfield.addClass('InputfieldStateCollapsed');
closed();
}
}
return $inputfield;
@@ -415,7 +431,7 @@ var Inputfields = {
if(focused) {
if(typeof callback != "undefined") callback($inputfield);
} else {
} else if(!this.inView($inputfield)) {
// item could not be directly focused, see if we can make make it visible
Inputfields.find($inputfield, false, callback);
}

File diff suppressed because one or more lines are too long