/**
 cor-file-sorting.js
 @package      Core
 @copyright    Copyright (c) 2007 - 2009 Ragnar.cz. All rights reserved
 @license      GNU/GPL http://www.gnu.org/copyleft/gpl.html

 Albireo is free software!
*/
   
    function sort ( side ) {
	var lside = side +"-sorting";
	$ ("#"+ lside ).html ( '<a href="#"  class="cor-button-small cor-order" onclick="jsquery(\''+side+'\');return false;"><span><?php echo  _( 'Dokončit' ); ?></span></a>' );
    }
  
    function endsort ( side ) {
	var lside = side +"-sorting";
//document.getElementById ( lside ).innerHTML =
	$ ("#"+ lside ).html ( '<a href="#"  class="cor-button-small cor-order" onclick="sort(\''+side+'\');junkdrawer.restoreListOrder(\''+side+'SortFiles\');dragsort.makeListSortable(document.getElementById(\''+side+'SortFiles\'));return false;"><span><?php echo  _( 'Řadit obsah' ); ?></span></a>' );
    } 