All pastes #801468 Raw Edit

js

public text v1 · immutable
#801468 ·published 2007-11-29 08:56 UTC
rendered paste body
function synczy_user_new() {
	synczy_clean();
	e = gE('pview');
	synczy_start();
	sD(e);
	xajax_user_load_edit();
}
function synczy_user_save() {
	ff.mode.value = 'save';
	if (!ff.firstName.value){
	//if (!ff.firstName.value || !ff.lastName.value || !ff.email.value || !ff.userName.value || !ff.password1.value || !ff.password2.value) {
		alert('Please enter all required information!');
		return false;
	}else {
		synczy_start();
		alert(xajax_user_update_full(xajax.getFormValues("zappa"),0));
		alert('Hello This is user.js file')
		synczy_edit('0');
		return false;
	}
}
function synczy_activity_del(id) {
	synczy_start();
	synczy_type_view(0);
	xajax_type_delete(id);	
}
function synczy_user_view(id,tab) {
	synczy_clean();
	e = gE('pview');
	if (id == 0) {
		hD(e);
		synczy_message();
	} else {
		synczy_start();
		sD(e);
		if (tab) {
			xajax_user_load_view(id,tab);
		} else {
			xajax_user_load_view(id);
		}
	}
}
function synczy_user_more(tab) {
	synczy_tab(tab);
	if (id = ff.elements['id'].value) {
		synczy_start();
		xajax_user_load_more(id,tab);
	}
}
function synczy_user_edit(id) {
	synczy_clean();
	e = gE('pview');
	if (id == 0) {
		hD(e);
	} else {
		synczy_start();
		sD(e);
		xajax_user_load_edit(id);
	}
}

function listenClickUsers(e) {
	// this function makes clicking area bigger on drop down menu
	var targ;
	if (!e) var e = window.event;
	if (e.target) targ = e.target;
	else if (e.srcElement) targ = e.srcElement;
	if (targ.nodeType == 3) // defeat Safari bug
		targ = targ.parentNode;
	if (targ.tagName == 'TD' && !targ.onclick) {
		var str  = targ.parentNode;
        if (!isNaN(str.id) && (str.id > 0)) {
            synczy_user_view(str.id);
		}
	}
}