 {
			token = houses[i].token;
			break;
		}
	}
	if (typeof token === "undefined") {
		$publishBtn.addClass("no");
	}{{else}}
	{{end}}
	$publishBtn.on('click', function(e) {
		e.preventDefault();
		if (publishing) {
			return;
		}
		publishing = true;
		$.ajax({
			type: "POST",
			url: "/âŒ‚/{{if .ID}}{{.ID}}{{else}}create{{end}}",{{if .ID}} 
			beforeSend: function (request) {
				request.setRequestHeader("Authorization", token);
			},{{end}}
			data: {html: editor.getSession().getValue(), public: $pu