Guest User

Untitled

a guest
Jan 17th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. <li><input type = "submit" class = "submit" name = "action" value = "Save" /></li>
  2.  
  3. var jQT = $.jQTouch({
  4.  
  5. icon: 'kilo.png',
  6. statusBar: 'black'
  7.  
  8. });
  9.  
  10. $(document).ready(function(){
  11.  
  12. $('#settings form.MainForm').submit(saveSettings);
  13. $('#settings form.myForm').submit(saveSettings);
  14.  
  15. $('#settings').bind('pageAnimationStart', loadSettings);
  16.  
  17.  
  18. });
  19.  
  20. function loadSettings() {
  21.  
  22. $('#name').val(localStorage.name);
  23. $('#email').val(localStorage.email);
  24. $('#telephone').val(localStorage.telephone);
  25. $('#other').val(localStorage.other);
  26. $('#notifications').val(localStorage.notifications);
  27. $('#preview').val(localStorage.preview);
  28.  
  29. $('#Professions').val(localStorage.Professions);
  30.  
  31. }
  32.  
  33. function saveSettings() {
  34.  
  35. localStorage.name = $('#name').val();
  36. localStorage.email = $('#email').val();
  37. localStorage.telephone = $('#telephone').val();
  38. localStorage.other = $('#other').val();
  39. localStorage.notifications = $('#notifications').val();
  40. localStorage.preview = $('#preview').val();
  41.  
  42. localStorage.Professions = $('#Professions').val();
  43.  
  44. jQT.goBack();
  45.  
  46. return false;
  47. }
  48.  
  49. function saveSettings(evt) { evt.preventDefault(); ...
Add Comment
Please, Sign In to add comment