conanbatt/OpenKaya — Issue #16: JS Error when saving the user profile
Author: scarsick
Created: 2012-03-03 01:04:56+00:00
State: open

The function ```getTimeSettings``` is undefined but referenced in the code.

Uncaught ReferenceError: getTimeSettings is not defined
(anonymous function):9292/users/scarsick/:274
c.event.handlejquery.tools.min.js:67
c.event.add.j.handle.o

```js
$("#update").click(function() {
var info = {
info: {
description: $('#description').val(),
show_timestamps: $('#show_timestamps').attr('checked'),
time_settings: getTimeSettings(), //here
email: $('#email').val(),
old_password: $('#old_password').val(),
password: $('#password').val(),
}
};
//...
```