Skip to content

Instantly share code, notes, and snippets.

@netguru
Created November 18, 2008 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netguru/26108 to your computer and use it in GitHub Desktop.
Save netguru/26108 to your computer and use it in GitHub Desktop.
bob={
config:{
timeout:3000,
descriptions:{
customfields:{
select:{
msg:"elementy listy podaj jako wartość domyślną, każdy oddzielony przecinkiem",
cssClass:"desc"
}
}
}
},
init:function(){
},
customfields_callback:function(){
$("select[id$='field_type']").change(function(){
if($(this).val() == "select"){
$(this).after('<div class="'+this.config.descriptions.customfields.select.cssClass+'">'+this.config.descriptions.customfields.select.msg+'</div>');
}
});
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment