// Code review - adminshop - group 3

This commit is contained in:
mDeflotte
2012-01-20 15:35:59 +00:00
parent 40f5d17b6b
commit a1bb4228fc
2 changed files with 35 additions and 26 deletions
@@ -43,17 +43,20 @@
<script type="text/javascript">
$(document).ready(function(){
$("#id_category").change(function(){
$.ajax({
type: "POST",
url : "{$current}",
async: true,
dataType: "html",
data : "ajax=true&id_category="+$(this).val()+"&use_shop_context=false&getCategoriesFromRootCategory=true&token={$token}",
success : function(res)
doAdminAjax(
{
ajax:"1",
id_category : $(this).val(),
use_shop_context : 0,
action : "getCategoriesFromRootCategory",
controller: "AdminShop",
token : "{$token}",
},
function(res)
{
$('#categories-treeview').parent().html(res);
}
});
);
});
});
</script>