Custom path handling for DataTables ajax calls

This commit is contained in:
Eric A. Miller
2014-07-16 20:00:39 -04:00
parent e1e4723c47
commit 0ea6f754b4
7 changed files with 12 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
2.028005
[BUG FIXES]
* Custom path handling for DataTables ajax calls
2.028004 - 2014-07-16
[BUG FIXES]

View File

@@ -25,7 +25,7 @@ $(document).ready(function() {
},
"serverSide": true,
"order": [[ 0, "desc" ]],
"ajax": "/ajax/control/admin/userlog/data",
"ajax": "[% uri_for('/ajax/control/admin/userlog/data') %]",
"columns": [{
"data": 'creation',
"className": "nd_center-cell",

View File

@@ -45,7 +45,7 @@ $(document).ready(function() {
"search": 'Filter records: '
},
"serverSide": true,
"ajax": '/ajax/content/report/apradiochannelpower/data',
"ajax": "[% uri_for('/ajax/content/report/apradiochannelpower/data') %]",
"order": [[ 0, 'asc' ]],
"columns": [
{

View File

@@ -71,7 +71,7 @@ $(document).ready(function() {
"search": 'Filter records: '
},
"serverSide": true,
"ajax": '/ajax/content/report/devicepoestatus/data',
"ajax": "[% uri_for('/ajax/content/report/devicepoestatus/data') %]",
"order": [[ 0, 'asc' ]],
"columns": [
{

View File

@@ -40,7 +40,7 @@ $(document).ready(function() {
"serverSide": true,
"searching": false,
"order": [[ 0, "desc" ]],
"ajax": '/ajax/content/report/moduleinventory/data?[% url(params('query').hash) %]',
"ajax": "[% uri_for('/ajax/content/report/moduleinventory/data') %]?[% url(params('query').hash) %]",
"columns": [
{
"data": 'ip',

View File

@@ -35,7 +35,7 @@ $(document).ready(function() {
[% IF opt %]
"serverSide": true,
"order": [[ 0, "desc" ]],
"ajax": '/ajax/content/report/netbios/data?[% url(params('query').hash) %]',
"ajax": "[% uri_for('/ajax/content/report/netbios/data') %]?[% url(params('query').hash) %]",
"columns": [
{
"data": 'domain',

View File

@@ -35,7 +35,7 @@ $(document).ready(function() {
[% IF opt %]
"serverSide": true,
"order": [[ 0, "desc" ]],
"ajax": '/ajax/content/report/nodevendor/data?[% url(params('query').hash) %]',
"ajax": "[% uri_for('/ajax/content/report/nodevendor/data') %]?[% url(params('query').hash) %]",
"columns": [
{
"data": 'mac',