{% extends "data_list.html" %} {% load i18n %} {% block AddDiv %}

 

{%endblock%} {% block addjs %} filterData =function(o){ var vItem= $(o).attr('value') $("#id_datalist").get(0).g.base_query=["content__exact="+vItem] $("#id_datalist").get(0).g.load_data() } var after_init=function(){ $(".div_ListAndFilter").css({float:'right',width:'100%'}) var code =$("#id_content").val(); var combobox_content = ""; for(i=0,j=global_Catogary.length;i" + global_Catogary[i][1] + "" }else{ combobox_content += "" } } $("#id_content").parent().html('') } var after_submit=function(){ // $(".div_ListAndFilter").css({float:'right',width:'75%'}); // $(".div_ListAndFilter").find(".div_box").css({height:'350px'}); // if ($.browser.msie&&$.browser.version<7.0){ // $(".div_ListAndFilter").find(".div_box").css({height:'350px'}); // }; } var after_close=function(){ $(".div_ListAndFilter").css({float:'right',width:'75%'}); } $(function(){ $(".div_ListAndFilter").css({float:'right',width:'75%'}); $(".div_ListAndFilter").find(".div_box").css({height:'350px'}); if ($.browser.msie&&$.browser.version<7.0){ $(".div_ListAndFilter").find(".div_box").css({height:'350px'}); }; $.ajax({ url:"{{dbapp_url}}BaseCode/category/", dataType:"json", cache:false, async:false, type:"GET", success:function(data){ global_Catogary = data var li_html ="" for(i=0,j=data.length;i" + data[i][1] +"" } $("#id_base_category").html(li_html) } }); }) {% endblock %}