File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
htdocs/js/apps/LibraryBrowser Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -69,24 +69,25 @@ $(function () {
6969 var jsonInfo = this . model . toJSON ( ) ;
7070 _ . extend ( jsonInfo , self . options ) ;
7171 this . $el . html ( this . template ( jsonInfo ) ) ;
72+ this . $el . draggable ( {
73+ helper :'clone' ,
74+ revert :true ,
75+ handle :'.problem' ,
76+ appendTo :'body' ,
77+ cursorAt :{
78+ top :0 ,
79+ left :0
80+ } ,
81+ opacity :0.35
82+ } ) ;
7283 } else {
7384 this . $el . html ( '<img src="/webwork2_files/images/ajax-loader.gif" alt="loading"/>' ) ;
7485 problem . render ( ) ;
7586 }
7687
7788 this . el . setAttribute ( 'data-path' , problem . get ( 'path' ) ) ;
7889 this . el . id = this . model . cid ;
79- this . $el . draggable ( {
80- helper :'clone' ,
81- revert :true ,
82- handle :'.problem' ,
83- appendTo :'body' ,
84- cursorAt :{
85- top :0 ,
86- left :0
87- } ,
88- opacity :0.35
89- } ) ;
90+
9091
9192
9293 return this ;
You can’t perform that action at this time.
0 commit comments