Sha256: 2357ce7e3be6a3f7659d37f3fff865e57a09f99b692c19d3cc3fa6ddc871e379
Contents?: true
Size: 693 Bytes
Versions: 18
Compression:
Stored size: 693 Bytes
Contents
pageflow.DraggablePageItemView = pageflow.PageItemView.extend({ className: 'draggable', events: { 'mouseenter': function() { this.model.set('highlighted', true); }, 'mouseleave': function() { this.model.unset('highlighted'); } }, onRender: function() { var view = this; this.$el.draggable({ helper: function() { return view.$el .clone() .width(view.$el.width()) .wrap('<div class="editor"><ul class="dragged pages outline" /></div>') .parents('.editor') .css('z-index', 100); }, appendTo: 'body' }); pageflow.PageItemView.prototype.onRender.call(this); } });
Version data entries
18 entries across 18 versions & 1 rubygems