/** * Set of clients */ function ClientDetails () { // }; /** * the selected client id - needed statically for cyclic refresh */ ClientDetails.selectedClientId = null; /** * Save the status of the messages are inserted in the UI. They should not * be overwritten with each cyclic refresh, so that user inputs won't be * overwritten. */ ClientDetails.messagesInserted = false; /** * Selection box at which the user can select the client. * This method also binds the change event, i.e. the function that is called * once the user has changed the selection. * * @param clients * @param htmlid */ ClientDetails.createSelectionBox = function(clients,htmlid) { $("#detailstabs").tabs(); var html = ""; if (clients.length == 0) { html = "Es wurden noch keine Betriebe eingegeben."; } else { ClientDetails.selectedClientId = clients[0].id; ClientDetails.requestReport(clients[0].id); html = "