Ignore:
Timestamp:
Mar 16, 2011, 1:45:47 AM (14 years ago)
Author:
patdenice
Message:

Add pwg_token to ajax request.

Location:
extensions/autoupdate/trunk/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/autoupdate/trunk/template/autoupdate.js

    r9721 r9723  
    1515  jQuery.post(
    1616    "plugins/autoupdate/ajax/ignore_list.php",
    17     { reset: true },
     17    { reset: true, pwg_token: pwg_token },
    1818    function(data) {
    1919      if (data == "ok") {
     
    6060    type: 'POST',
    6161    url: 'plugins/autoupdate/ajax/update_'+type+'.php',
    62     data: { id: id, revision: revision },
     62    data: { id: id, revision: revision, pwg_token: pwg_token },
    6363    success: function(data) {
    6464      if (data['result']) {
     
    109109  jQuery.post(
    110110    "plugins/autoupdate/ajax/ignore_list.php",
    111     { type: type+'s', id: id },
     111    { type: type+'s', id: id, pwg_token: pwg_token },
    112112    function(data) {
    113113      if (data == "ok") {
  • extensions/autoupdate/trunk/template/update_ext.tpl

    r9721 r9723  
    44
    55{footer_script require='jquery.autoupdate,jquery.effects.blind,jquery.jgrowl'}
     6var pwg_token = '{$PWG_TOKEN}';
    67var extList = new Array();
    78var confirmMsg  = '{'Are you sure?'|@translate|@escape:'javascript'}';
Note: See TracChangeset for help on using the changeset viewer.