Retrait du javascript de la structure html

This commit is contained in:
Michael RICOIS 2012-01-02 19:23:41 +00:00
parent a9838cd5a5
commit c34efc45f8
2 changed files with 11 additions and 18 deletions

View File

@ -25,19 +25,3 @@
<?=$this->action('financiere', 'criteres')?>
</div>
</div>
<script>
$(function() {
$( "#accordion" ).accordion({
icons: {
header: "ui-icon-circle-arrow-e",
headerSelected: "ui-icon-circle-arrow-s"
}
});
$( "#toggle" ).button().toggle(function() {
$( "#accordion" ).accordion( "option", "icons", false );
}, function() {
$( "#accordion" ).accordion( "option", "icons", icons );
});
});
</script>

View File

@ -79,10 +79,19 @@ $(document).ready(function(){
$('.'+name).show('slide');
}
});
$( "#accordion" ).accordion({
autoHeight: false,
navigation: true
navigation: true,
icons: {
header: "ui-icon-circle-arrow-e",
headerSelected: "ui-icon-circle-arrow-s"
}
});
$( "#toggle" ).button().toggle(function() {
$( "#accordion" ).accordion( "option", "icons", false );
}, function() {
$( "#accordion" ).accordion( "option", "icons", icons );
});
$( "#sortable" ).sortable({