All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.js.admin.users.settings.index.js Maven / Gradle / Ivy

There is a newer version: 0.6.1
Show newest version

function updateSettingsTable() {
	
	var email = $("#email").val();

	$.getJSON("/api/users/get?email=" + email, function(data) {
		
		var count = 0;
		var list = data.settings;
				
		$("#settinglisttable > tbody").html("");
		$("#settinglisttable").append(
		    $.map(list, function (item, index) {
		    	count++;
		    	return '' 
		    		+ '' + index + '' 
		    		+ '' + item + ''
		    		+ ''
		    		+ '
' + '' + '
' + '' + ''; }).join()); if (count == 0) { $("#formlisttable").append("No settings"); } }); } function backbutton() { $("#formlist").slideDown( "slow", function() { $("#folderadd").hide(); hidemessages(); }); } $(document).ready(function() { $("#folderadd").hide(); updateSettingsTable(); $(".backbutton").click(function(){ backbutton(); }); $("#addfolderbutton").click(function() { $("#folderadd").show(); $("#formlist").slideUp( "slow", function() { }); }); $('.savesetting').submit(function(event) { postRequest($(this), "/api/users/settings/save", "", "", function(data) { updateSettingsTable(); }); return false; }); });




© 2015 - 2025 Weber Informatics LLC | Privacy Policy