- this.listing.onmousedown = function(evt) {thisControler.drag(evt);};
- this.listing.onmouseover = function(evt) {thisControler.moveRow(evt);};
- this.listing.onmouseup = function(evt) {thisControler.drop(evt);};
- addListener(this.listing, 'click', function(evt) {thisControler.disableClickAfterDrop(evt);});
+ if (orderable) {
+ this.listing.onmousedown = function(evt) {thisControler.drag(evt);};
+ this.listing.onmouseover = function(evt) {thisControler.moveRow(evt);};
+ this.listing.onmouseup = function(evt) {thisControler.drop(evt);};
+ addListener(this.listing, 'click', function(evt) {thisControler.disableClickAfterDrop(evt);});
+ }