Revision 06d0657a snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js

b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/common.js
213 213
    });
214 214
}
215 215

  
216
// when user moves a vm or network icon (list view)
217
ui.placementByUser = function() {
218
    if($('.sortable').length != 0) {
219
        $( ".sortable" ).sortable({
220
            items: "> li:not(:last)",
221
            stop: function(event, ui) {
222
                $.map($(this).find('li'), function(el) {
223
                            return $(el).attr('data-order', $(el).index());
224
                        });
225
            }
226
        });
227

  
228
        $( ".sortable" ).disableSelection(); //i think unnecessary
229
    }
230
}
231

  
232 216
function goToByScroll(id){
233 217
      // Remove "link" from the ID
234 218
    id = id.replace("link", "");

Also available in: Unified diff