Browse Source

added collapse, expand & toggleMaximize to run via js script

REJack 5 years ago
parent
commit
fe693889dd
5 changed files with 2 additions and 2 deletions
  1. 1 1
      build/js/Widget.js
  2. 1 1
      dist/js/adminlte.js
  3. 0 0
      dist/js/adminlte.js.map
  4. 0 0
      dist/js/adminlte.min.js
  5. 0 0
      dist/js/adminlte.min.js.map

+ 1 - 1
build/js/Widget.js

@@ -170,7 +170,7 @@ const Widget = (($) => {
           $(this).data(DATA_KEY, typeof config === 'string' ? data : config)
           $(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]()
           data[config]()
         } else if (typeof config === 'object') {
         } else if (typeof config === 'object') {
           data._init($(this))
           data._init($(this))

+ 1 - 1
dist/js/adminlte.js

@@ -1051,7 +1051,7 @@
             $(this).data(DATA_KEY, typeof config === 'string' ? data : config);
             $(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]();
             data[config]();
           } else if (typeof config === 'object') {
           } else if (typeof config === 'object') {
             data._init($(this));
             data._init($(this));

File diff suppressed because it is too large
+ 0 - 0
dist/js/adminlte.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/js/adminlte.min.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/adminlte.min.js.map


Some files were not shown because too many files changed in this diff