// JavaScript Document


(function ($) {
	
	$(document).ready(function(){
		$('form[name="addVocabulary"]').hide();
		$(".add-word-link").click(function(){
		$('form[name="addVocabulary"]').toggle();
		return false;
		});					   
	
	
	$('.verifyProp').click(function() {
	
	
	//alert('good');
	var activeControl = $(this);
	var property_index = activeControl.attr('index');
	
	var data = {
		index : property_index,
		action: 'vocabulary_verify_property'
		
		};
	
	
	$.get('http://openokpyon.com/wp-admin/admin-ajax.php', data, function(response) {
	
		if (response=="success") {
		activeControl.parent().parent().fadeOut('slow');
		
		} else { 
		alert(response);
		}
	
	});
	return false;
	});			
	
	
	});
	
	
	
	
	
		   
})(jQuery);
