File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function sepiaFW_build_ui_my_view(){
2020 }
2121
2222 function findOrCreateMyViewSection ( sectionName ) {
23- var sectionClass = "sepiaFW-section-" + sectionName . replace ( / _ / g, "-" ) ;
23+ var sectionClass = "sepiaFW-section-mv- " + sectionName . replace ( / ^ s e c t i o n _ / , "" ) . replace ( / _ / g, "-" ) ;
2424 var $res = $ ( '#sepiaFW-my-view' ) . find ( ".sepiaFW-my-view-section." + sectionClass ) ;
2525 if ( $res . length > 0 ) {
2626 return $res [ 0 ] ;
@@ -77,8 +77,12 @@ function sepiaFW_build_ui_my_view(){
7777 }
7878 //check if section is empty and handle
7979 MyView . handleEmptySection = function ( sectionElement ) {
80- if ( $ ( sectionElement ) . children ( ) . not ( "p" ) . length == 0 ) {
81- $ ( sectionElement ) . remove ( ) ;
80+ var $sectionElement = $ ( sectionElement ) ;
81+ if ( $sectionElement . children ( ) . not ( "p" ) . length == 0 ) {
82+ //animated remove
83+ $sectionElement . hide ( 150 , function ( ) {
84+ $sectionElement . remove ( ) ;
85+ } ) ;
8286 }
8387 }
8488
You can’t perform that action at this time.
0 commit comments