2013-02-06 11:51:53 +00:00
|
|
|
function update_cates_and_tags()
|
|
|
|
{
|
|
|
|
$('.select_option,.select_all').removeAttr('disabled');
|
|
|
|
$(".select_all:checked").each(function( obj ) {
|
2013-04-02 10:39:46 +00:00
|
|
|
// $(this).parent().siblings('label').find('.select_option').attr('disabled',"disabled");
|
2013-02-06 11:51:53 +00:00
|
|
|
$(this).parent().siblings('label').find('.select_option').removeAttr('checked');
|
|
|
|
});
|
|
|
|
$(".select_option:checked").each(function( obj ) {
|
2013-04-02 10:39:46 +00:00
|
|
|
// $(this).parent().siblings('label').find('.select_all').attr('disabled',"disabled");
|
2013-02-06 11:51:53 +00:00
|
|
|
$(this).parent().siblings('label').find('.select_all').removeAttr('checked');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2013-02-23 03:34:47 +00:00
|
|
|
function rebind(){
|
|
|
|
$("#widget_data_source_category,#widget_data_source_tag,#app_page_category,#app_page_tag").find('input').change(function(){update_cates_and_tags()});
|
|
|
|
}
|
|
|
|
|
2013-02-06 11:51:53 +00:00
|
|
|
$(document).ready(function(){
|
|
|
|
update_cates_and_tags();
|
2013-02-23 03:34:47 +00:00
|
|
|
rebind();
|
2013-02-06 11:51:53 +00:00
|
|
|
});
|