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

This commit is contained in:
Fu Matthew authored and chris committed 2013-02-27 10:49:51 +08:00
1 parent 99e67c8719
commit 0e6599e9b9
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();
});