text: function create(){var e=$("form").find("input, select");$.post("create.php",e.serialize(),function(e){var e=$.parseJSON(e);$("#catalogItems").val(e[0]),$("#itemsBase").val(e[1]),$("#furnidata").val(e[2]),$("#result").fadeIn()})}$(document).ready(function(){$("select").niceSelect(),$("select").on("change",function(){$("#content").load("template/"+$(this).val()+".tpl").hide(function(){$("select").niceSelect()}).fadeIn(function(){$("#button").fadeIn()})})});
  