
static.js.admin.users.settings.index.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of formkiq-server Show documentation
Show all versions of formkiq-server Show documentation
Server-side integration for the FormKiQ ios application
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