user roles starts

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-11-22 18:20:11 +08:00
1 parent 6dff83339a
commit cc7907f37a
12 files changed
+13 -12

No files matched your search

@@ -0,0 +1,6 @@
$(".attributes").append('<%= escape_javascript(render :partial=>"attribute_field",:locals=>{:attribute_field=>@attribute_field,:attribute_field_counter=>@attribute_field_counter} )%>');
$(".dataType").change(function () {
$(this).parents("legend").next("div").find("div[class^='type']").addClass("hide");
$(this).parents("legend").next("div").find("."+$(this).find("option:selected").attr("ref")).removeClass("hide");
})