Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($("#editpswform").data("changed")) {
- id = $('#passid').text();
- name = $('#pswname').val();
- url = $('#pswurla').text();
- username = $('#pswusr').val();
- password = $('#pswi').val();
- notes = $('#pswnotes').val();
- var dataString = 'EditPSW=true' + '&id=' + id + '&name='+ name + '&url=' + url + '&username=' + username + '&password=' + password + '¬es=' + notes;
- $.ajax({
- type: "POST",
- url: "utils.php",
- data: dataString,
- success: function(msg) {
- console.log(msg);
- $.ajax({
- url: "utils.php?setsession=Password saved!"
- }).done(function() {
- load_data();
- function load_data(query) {
- $.ajax({
- url: "search.php",
- method: "POST",
- data: {query: query},
- success: function (data) {
- $('#contentmain').html(data);
- }
- });
- }
- OpenNotification();
- });
- },
- error: function() {
- $.ajax({
- url: "utils.php?setsession=Error saving password!",
- }).done(function() {
- OpenNotification();
- });
- }
- });
- } else {
- $.ajax({
- url: "utils.php?setsession=No changes made!",
- }).done(function() {
- OpenNotification();
- });
- }
Add Comment
Please, Sign In to add comment