fix javascript disable checkbox failed after cate and tags being reloaded.

This commit is contained in:
Fu Matthew committed 2013-02-23 11:34:47 +08:00
1 parent 9fec7beb47
commit d6dd38744b
7 files changed
+14 -6

No files matched your search

@@ -11,7 +11,11 @@ function update_cates_and_tags()
});
}
function rebind(){
$("#widget_data_source_category,#widget_data_source_tag,#app_page_category,#app_page_tag").find('input').change(function(){update_cates_and_tags()});
}
$(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()});
rebind();
});