disable data transform when switching attribute field type. new member stable

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-11-22 17:49:44 +08:00
1 parent 0d26f48c9a
commit 6dff83339a
13 files changed
+176 -98

No files matched your search

@@ -13,8 +13,10 @@ $(document).ready(function(){
$(this).parents(".map-block").find(".form-horizontal").toggleClass("hide");
if($(this).parents(".map-block").hasClass("disabled")){
$(this).text("OFF");
$(this).siblings(".subrole_disable_field").val("true");
}else{
$(this).text("ON");
$(this).siblings(".subrole_disable_field").val("false");
}
}
if($(this).parents("legend").length==1) {
@@ -22,8 +24,10 @@ $(document).ready(function(){
$(this).parents("legend").next("div").toggleClass("hide");
if($(this).parents("legend").next("div").hasClass("hide")){
$(this).text("OFF");
$(this).siblings(".subrole_disable_field").val("true");
}else{
$(this).text("ON");
$(this).siblings(".subrole_disable_field").val("false");
}
checkSwitch();
}