예제 #1
0
파일: change.php 프로젝트: reytuty/facil
<script type="text/javascript">
jQuery(document).ready(function() {
	jQuery('#wysiwyg').wysiwyg({
		controls: {
			cut: { visible: true },
			copy: { visible: true },
			paste: { visible: true }
		}
	});
});
</script>
<script type="text/javascript">
jQuery(document).ready(function() {
	
	ROOT_PATH = '<?php 
echo CONFIG::getRootPath();
?>
';
	
	jQuery('#example').dataTable( {
		"sPaginationType": "full_numbers"
	});
	
	$(':checkbox[name=segment]').click(function(){
			var id = parseInt($(this).attr("id").split("_")[1]);
			var segment_id = parseInt($(this).attr("id").split("_")[2]);
			var method = "add_segment/";
			if(!$(this).is(':checked')){
				method = "remove_segment/";
			}
			$.ajax({