Created
February 17, 2016 05:27
-
-
Save masumonline/8237a34c53afca64dc79 to your computer and use it in GitHub Desktop.
opencast 2.1.0.2 feature sortable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#change admin/view/template/module/featured.tpl | |
#copy and past before <?php echo $footer; ?> in bottom | |
<style type="text/css"> | |
.odd, .even {background:#EFEFEF !important; margin:2px;} | |
.ui-sortable-handle {cursor: pointer;} | |
</style> | |
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script> | |
<script type="text/javascript"> | |
$(function() { | |
$('#featured-product').css({'height':'auto', 'overflow':'auto'}).before('Click and drag to reorder product'); | |
$('#featured-product').sortable(); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment