quintel / etmoses

Online decision support tool to create local energy situations for neighbourhoods, cities and regions with a time resolution of 15 minutes created and maintained by Quintel – Not maintained
https://moses.energytransitionmodel.com
MIT License
11 stars 3 forks source link

Make it possible to sort dispatchable table #1396

Closed grdw closed 8 years ago

grdw commented 8 years ago

Fixes #1062

ChaelKruip commented 8 years ago

I have tried this locally but when I change the order, the heat load calculation does not complete pointing to this place in the code (if I am correctly reading my console debug info): etmoses

grdw commented 8 years ago

I have tried this locally but when I change the order, the heat load calculation does not complete

I see why 👍 I fixed it. If you could create a new LES and try again, it should work fine now.

ChaelKruip commented 8 years ago

I have checked it locally and it works now.

Only thing that does not seem to work is the 'save all and view heat load'. It does not seem to save changes in the order of dispatchables...

ChaelKruip commented 8 years ago

Can this be merged @grdw?

antw commented 8 years ago

Some feedback:

grdw commented 8 years ago

The table width and height jumps slightly when grabbing and moving a row. Can that be prevented somehow?

Hmm. It might, I have no idea how jquery-ui sortable plugin creates the 'draggable row'. But I'll give it a shot.

"hamburger" icons

This was my first idea as an icon but glyphicon glyphicon-menu-hamburger icon didn't show anything 😩 . That's why I picked the cross since it means 'move' in a way. It had to do with the bootstrap version, however bumping the bootstrap version came with other complications. Ofcourse we could also just use a simple png image as an icon.

grdw commented 8 years ago

I fixed:

ChaelKruip commented 8 years ago

I think that the 'dragging width' is ugly but not a show-stopper at this moment. @antw do you agree that we can merge this and come back to this minor issue later?