Skip to content

Commit c9b2c37

Browse files
committed
Merge pull request #10 from whytheplatypus/master
library problem fix
2 parents 5a44925 + 0e13f95 commit c9b2c37

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

htdocs/js/apps/LibraryBrowser/library_browser.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)