width: 100%;
border-radius: 5px;
background-color: #ddd;
- -webkit-margin-before: -20px; // compensate for Chrome behavior for ol > li > table
}
.content {
text-align: center;
border-radius: 0 5px 5px 0;
padding: 10px 10px;
- pointer-events: none;
.dragEnter {
opacity: 0.5;
width:100%;
}
- .placeholder-top {
- margin-left: 25px;
+ ol {
+ margin: 0;
+ counter-reset: edumed-order-counter;
}
-
- li {
+ ol li {
+ list-style-type: none;
cursor: move;
.dragged {
opacity: 0.6;
this.trigger(this.mode === 'initial' ? 'moveItem' : 'moveAnswer', droppedItem.item, first.item, 'before');
dropTargets.removeClass('active');
+ e.preventDefault();
}.bind(this));
};
_.extend(OrderExerciseView.prototype, Backbone.Events, {
var dropTargets = this.dom.find('.placeholder'),
- dragSources = this.dom.find('.wrapper');
+ dragSources = this.dom.find('.handle');
dragSources.on('dragstart', function(e) {
this.dom.addClass('dragged');
<li>
- <div class="wrapper" draggable="true">
- <div class="content"></div>
- <div class="handle">
+ <div class="wrapper">
+ <div class="handle" draggable="true">
<i class="icon-resize-vertical icon-white"></i>
</div>
+ <div class="content"></div>
</div>
<div class="placeholder"></div>
</li>
\ No newline at end of file