added collapse, expand & toggleMaximize to run via js script

This commit is contained in:
REJack
2019-07-29 14:21:05 +02:00
parent 64ef08f35d
commit fe693889dd
5 changed files with 5 additions and 5 deletions

View File

@@ -170,7 +170,7 @@ const Widget = (($) => {
$(this).data(DATA_KEY, typeof config === 'string' ? data : config)
}
if (typeof config === 'string' && config.match(/remove|toggle/)) {
if (typeof config === 'string' && config.match(/collapse|expand|remove|toggle|toggleMaximize/)) {
data[config]()
} else if (typeof config === 'object') {
data._init($(this))

2
dist/js/adminlte.js vendored
View File

@@ -1051,7 +1051,7 @@
$(this).data(DATA_KEY, typeof config === 'string' ? data : config);
}
if (typeof config === 'string' && config.match(/remove|toggle/)) {
if (typeof config === 'string' && config.match(/remove|toggle|toggleMaximize/)) {
data[config]();
} else if (typeof config === 'object') {
data._init($(this));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long