mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-26 07:46:31 +01:00
Fixed initial elements state not being restored
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
1. [](#bugfix)
|
||||
* Fixed nested element form fields
|
||||
* Fixed `columns` and `column` fields with `.dotted` variables inside to ignore columns and column names
|
||||
* Fixed initial elements state not being restored
|
||||
|
||||
# v1.10.32
|
||||
## 03/28/2022
|
||||
|
||||
@@ -8,3 +8,5 @@ $(document).on('change', '[data-grav-elements] select', (event) => {
|
||||
$(`[id^="${id}_"]`).css('display', 'none');
|
||||
$(`[id="${id}__${value}"]`).css('display', 'inherit');
|
||||
});
|
||||
|
||||
$('[data-grav-elements] select').trigger('change');
|
||||
|
||||
3
themes/grav/js/admin.min.js
vendored
3
themes/grav/js/admin.min.js
vendored
@@ -9695,6 +9695,7 @@ external_jQuery_default()(document).on('change', '[data-grav-elements] select',
|
||||
external_jQuery_default()("[id^=\"".concat(id, "_\"]")).css('display', 'none');
|
||||
external_jQuery_default()("[id=\"".concat(id, "__").concat(value, "\"]")).css('display', 'inherit');
|
||||
});
|
||||
external_jQuery_default()('[data-grav-elements] select').trigger('change');
|
||||
;// CONCATENATED MODULE: ./app/forms/fields/index.js
|
||||
|
||||
|
||||
@@ -15265,4 +15266,4 @@ module.exports = jQuery;
|
||||
/******/ Grav = __webpack_exports__;
|
||||
/******/
|
||||
/******/ })()
|
||||
;
|
||||
;
|
||||
11
themes/grav/js/vendor.min.js
vendored
11
themes/grav/js/vendor.min.js
vendored
@@ -4599,7 +4599,7 @@ return Chartist;
|
||||
// If we're not in Markdown mode, fall back to normal newlineAndIndent
|
||||
var eolState = cm.getStateAfter(pos.line);
|
||||
var inner = CodeMirror.innerMode(cm.getMode(), eolState);
|
||||
if (inner.mode.name !== "markdown") {
|
||||
if (inner.mode.name !== "markdown" && inner.mode.helperType !== "markdown") {
|
||||
cm.execCommand("newlineAndIndent");
|
||||
return;
|
||||
} else {
|
||||
@@ -15331,7 +15331,7 @@ CodeMirror.overlayMode = function(base, overlay, combine) {
|
||||
|
||||
addLegacyProps(CodeMirror);
|
||||
|
||||
CodeMirror.version = "5.65.1";
|
||||
CodeMirror.version = "5.65.2";
|
||||
|
||||
return CodeMirror;
|
||||
|
||||
@@ -15840,6 +15840,11 @@ CodeMirror.defineMode("clike", function(config, parserConfig) {
|
||||
|
||||
stream.eatWhile(/[\w\$_]/);
|
||||
return "meta";
|
||||
},
|
||||
'"': function(stream, state) {
|
||||
if (!stream.match('""\n')) return false;
|
||||
state.tokenize = tokenTripleString;
|
||||
return state.tokenize(stream, state);
|
||||
}
|
||||
},
|
||||
modeProps: {fold: ["brace", "import"]}
|
||||
@@ -17334,7 +17339,7 @@ CodeMirror.defineMode("gfm", function(config, modeConfig) {
|
||||
}
|
||||
|
||||
function getTagRegexp(tagName, anchored) {
|
||||
return new RegExp((anchored ? "^" : "") + "<\/\s*" + tagName + "\s*>", "i");
|
||||
return new RegExp((anchored ? "^" : "") + "<\/\\s*" + tagName + "\\s*>", "i");
|
||||
}
|
||||
|
||||
function addTags(from, to) {
|
||||
|
||||
Reference in New Issue
Block a user