Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <li><input type = "submit" class = "submit" name = "action" value = "Save" /></li>
- var jQT = $.jQTouch({
- icon: 'kilo.png',
- statusBar: 'black'
- });
- $(document).ready(function(){
- $('#settings form.MainForm').submit(saveSettings);
- $('#settings form.myForm').submit(saveSettings);
- $('#settings').bind('pageAnimationStart', loadSettings);
- });
- function loadSettings() {
- $('#name').val(localStorage.name);
- $('#email').val(localStorage.email);
- $('#telephone').val(localStorage.telephone);
- $('#other').val(localStorage.other);
- $('#notifications').val(localStorage.notifications);
- $('#preview').val(localStorage.preview);
- $('#Professions').val(localStorage.Professions);
- }
- function saveSettings() {
- localStorage.name = $('#name').val();
- localStorage.email = $('#email').val();
- localStorage.telephone = $('#telephone').val();
- localStorage.other = $('#other').val();
- localStorage.notifications = $('#notifications').val();
- localStorage.preview = $('#preview').val();
- localStorage.Professions = $('#Professions').val();
- jQT.goBack();
- return false;
- }
- function saveSettings(evt) { evt.preventDefault(); ...
Add Comment
Please, Sign In to add comment