added collapse, expand & toggleMaximize to run via js script

pull/2183/head
REJack 2019-07-29 14:21:05 +02:00
parent 64ef08f35d
commit fe693889dd
No known key found for this signature in database
GPG Key ID: 9F3976CC630CC888
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