File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
cms/static/cms/js/plugins Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,7 @@ $(document).ready(function () {
40
40
'url' : null ,
41
41
'hidden' : false ,
42
42
'maximized' : false
43
- } ,
44
- 'position' : null
43
+ }
45
44
}
46
45
} ,
47
46
@@ -603,12 +602,6 @@ $(document).ready(function () {
603
602
// set new classes
604
603
dragitem . addClass ( 'cms_draggable-selected' ) ;
605
604
plugin . addClass ( 'cms_plugin-active' ) ;
606
-
607
- // set new position
608
- var pos = plugin . position ( 'body' ) . top ;
609
- var bound = $ ( window ) . height ( ) ;
610
- var offset = 200 ;
611
- // if(bound - pos <= 0) $(window).scrollTop(pos - offset);
612
605
} ,
613
606
614
607
showError : function ( msg ) {
@@ -652,19 +645,13 @@ $(document).ready(function () {
652
645
this . modes . removeClass ( 'cms_btn-active' ) . eq ( 0 ) . addClass ( 'cms_btn-active' ) ;
653
646
this . settings . mode = 'edit' ;
654
647
655
- // set correct position
656
- $ ( 'body' ) . scrollTop ( this . settings . position || 0 ) ;
657
-
658
648
// hide clipboard if in edit mode
659
649
this . container . find ( '.cms_clipboard' ) . hide ( ) ;
660
650
661
651
if ( ! init ) this . setSettings ( ) ;
662
652
} ,
663
653
664
654
_enableDragMode : function ( speed , init ) {
665
- // we need to save the position first
666
- // this.settings.position = $('body').scrollTop();
667
-
668
655
this . bars . fadeIn ( speed ) ;
669
656
this . plugins . hide ( ) ;
670
657
this . placeholders . stop ( true , true ) . fadeIn ( speed ) ;
You can’t perform that action at this time.
0 commit comments