New: Quality in Profile can now be re-ordered (advanced setting)pull/4/head
parent
f832d55424
commit
8e59843d35
@ -0,0 +1,27 @@
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backbone.collectionview'
|
||||
], function (BackboneSortableCollectionView) {
|
||||
return BackboneSortableCollectionView.extend({
|
||||
|
||||
events : {
|
||||
'mousedown li, td' : '_listItem_onMousedown',
|
||||
'dblclick li, td' : '_listItem_onDoubleClick',
|
||||
'click' : '_listBackground_onClick',
|
||||
'click ul.collection-list, table.collection-list' : '_listBackground_onClick',
|
||||
'keydown' : '_onKeydown',
|
||||
'click .x-move' : '_onClickMove'
|
||||
},
|
||||
|
||||
_onClickMove: function( theEvent ) {
|
||||
var clickedItemId = this._getClickedItemId( theEvent );
|
||||
|
||||
if( clickedItemId )
|
||||
{
|
||||
var clickedModel = this.collection.get( clickedItemId );
|
||||
this.trigger('moveClicked', clickedModel);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Reference in new issue