forked from M-Labs/web2019
Compare commits
No commits in common. "49488577f8077caffbfa050d72b38ce3c61568fa" and "61b291b9e0bf1afe58b2e6b5a4208cb74146370e" have entirely different histories.
49488577f8
...
61b291b9e0
@ -183,6 +183,10 @@ class Layout extends React.PureComponent {
|
||||
checkValidation(conf) {
|
||||
let conf_obj;
|
||||
|
||||
if (!conf) {
|
||||
conf = this.state.customconf;
|
||||
}
|
||||
|
||||
try {
|
||||
conf_obj = JSON.parse(conf);
|
||||
} catch (e) {
|
||||
@ -277,7 +281,7 @@ class Layout extends React.PureComponent {
|
||||
}
|
||||
|
||||
handleClickLoad() {
|
||||
this.checkValidation(this.state.customconf);
|
||||
this.checkValidation();
|
||||
|
||||
if (this.props.onClickLoadCustomConf) {
|
||||
this.props.onClickLoadCustomConf(this.state.customconf_ready);
|
||||
|
6
static/js/shop.min.js
vendored
6
static/js/shop.min.js
vendored
@ -227,6 +227,10 @@ var Layout = /*#__PURE__*/function (_React$PureComponent) {
|
||||
value: function checkValidation(conf) {
|
||||
var conf_obj;
|
||||
|
||||
if (!conf) {
|
||||
conf = this.state.customconf;
|
||||
}
|
||||
|
||||
try {
|
||||
conf_obj = JSON.parse(conf);
|
||||
} catch (e) {
|
||||
@ -311,7 +315,7 @@ var Layout = /*#__PURE__*/function (_React$PureComponent) {
|
||||
}, {
|
||||
key: "handleClickLoad",
|
||||
value: function handleClickLoad() {
|
||||
this.checkValidation(this.state.customconf);
|
||||
this.checkValidation();
|
||||
|
||||
if (this.props.onClickLoadCustomConf) {
|
||||
this.props.onClickLoadCustomConf(this.state.customconf_ready);
|
||||
|
@ -83,9 +83,7 @@
|
||||
<div class="dropdown-menu shadow-none shadow-lg text-left text-lg-left" aria-labelledby="navbarDropdown">
|
||||
{% for tmp_page in subsection.pages %}
|
||||
{% if tmp_page.extra.menu_item and tmp_page.extra.menu_item == "th1" %}
|
||||
<a class="dropdown-item pt-2 pb-2 mx-4 mt-2 mb-2 mt-sm-3 mb-sm-3 w-auto btn btn-primary btn-inversed {% if current_path == tmp_page.path %}active{% endif %}" href="{{ tmp_page.permalink }}">
|
||||
<center>{{ tmp_page.title }}</center>
|
||||
</a>
|
||||
<a class="dropdown-item pt-2 pb-2 mx-4 mt-2 mb-2 mt-sm-3 mb-sm-3 w-auto btn btn-primary btn-inversed {% if current_path == tmp_page.path %}active{% endif %}" href="{{ tmp_page.permalink }}">{{ tmp_page.title }}</a>
|
||||
{% else %}
|
||||
<a class="dropdown-item pt-2 pb-2 {% if current_path == tmp_page.path %}active{% endif %}" href="{{ tmp_page.permalink }}">{{ tmp_page.title }}</a>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user