
$(document).ready(function() {
	$('#page_properties').dialog({ autoOpen: false , width:550,title:'Page properties'});

	$("#page_button").click(function(){
		$('#page_properties').dialog('open');
	});

	var options = { 
        beforeSubmit:  showRequest,  // pre-submit callback 
        success:       showResponse  // post-submit callback 
	}

	$("#pagePropertyForm").ajaxForm(options); 


});

function showRequest(formData, jqForm, options){

}

function showResponse(responseText, statusText, xhr, $form){
	$('#page_properties').dialog('close');
}


