first version of multi categories and tags

This commit is contained in:
Fu Matthew authored and chris committed 2013-02-27 10:49:48 +08:00
1 parent 4bc3a57862
commit 99e67c8719
12 files changed
+110 -11

No files matched your search

@@ -0,0 +1,17 @@
function update_cates_and_tags()
{
$('.select_option,.select_all').removeAttr('disabled');
$(".select_all:checked").each(function( obj ) {
$(this).parent().siblings('label').find('.select_option').attr('disabled',true);
$(this).parent().siblings('label').find('.select_option').removeAttr('checked');
});
$(".select_option:checked").each(function( obj ) {
$(this).parent().siblings('label').find('.select_all').attr('disabled',true);
$(this).parent().siblings('label').find('.select_all').removeAttr('checked');
});
}
$(document).ready(function(){
update_cates_and_tags();
$("#widget_data_source_category,#widget_data_source_tag,#app_page_category,#app_page_tag").find('input').change(function(){update_cates_and_tags()});
});