From 3e3556cef6be03699e838dc7b31b0d21b20fcdd3 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 18 Feb 2014 12:19:35 -0500 Subject: [PATCH] Bug 11703 [QA Followup 9] - Move scripts from api directory to svc directory --- koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js | 8 ++++---- koha-tmpl/intranet-tmpl/prog/en/js/holds.js | 2 +- {api => svc}/checkin.pl | 0 {api => svc}/checkouts.pl | 0 {api => svc}/holds.pl | 0 {api => svc}/renew.pl | 0 6 files changed, 5 insertions(+), 5 deletions(-) rename {api => svc}/checkin.pl (100%) rename {api => svc}/checkouts.pl (100%) rename {api => svc}/holds.pl (100%) rename {api => svc}/renew.pl (100%) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js index 1ae3795..b794630 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js @@ -55,7 +55,7 @@ $(document).ready(function() { exempt_fine: $("#exemptfine").is(':checked') }; - $.post( "/cgi-bin/koha/api/checkin.pl", params, function( data ) { + $.post( "/cgi-bin/koha/svc/checkin.pl", params, function( data ) { id = "#checkin_" + data.itemnumber; content = ""; @@ -84,7 +84,7 @@ $(document).ready(function() { date_due: $("#newduedate").val() }; - $.post( "/cgi-bin/koha/api/renew.pl", params, function( data ) { + $.post( "/cgi-bin/koha/svc/renew.pl", params, function( data ) { var id = "#renew_" + data.itemnumber; var content = ""; @@ -284,7 +284,7 @@ $(document).ready(function() { "bPaginate": false, "bProcessing": true, "bServerSide": true, - "sAjaxSource": '/cgi-bin/koha/api/checkouts.pl', + "sAjaxSource": '/cgi-bin/koha/svc/checkouts.pl', "fnServerData": function ( sSource, aoData, fnCallback ) { aoData.push( { "name": "borrowernumber", "value": borrowernumber } ); @@ -394,7 +394,7 @@ $(document).ready(function() { "bPaginate": false, "bProcessing": true, "bServerSide": true, - "sAjaxSource": '/cgi-bin/koha/api/checkouts.pl', + "sAjaxSource": '/cgi-bin/koha/svc/checkouts.pl', "fnServerData": function ( sSource, aoData, fnCallback ) { $.each(relatives_borrowernumbers, function( index, value ) { aoData.push( { "name": "borrowernumber", "value": value } ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/holds.js b/koha-tmpl/intranet-tmpl/prog/en/js/holds.js index 26f7efc..76dfee5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/holds.js @@ -111,7 +111,7 @@ $(document).ready(function() { "bPaginate": false, "bProcessing": true, "bServerSide": true, - "sAjaxSource": '/cgi-bin/koha/api/holds.pl', + "sAjaxSource": '/cgi-bin/koha/svc/holds.pl', "fnServerData": function ( sSource, aoData, fnCallback ) { aoData.push( { "name": "borrowernumber", "value": borrowernumber } ); diff --git a/api/checkin.pl b/svc/checkin.pl similarity index 100% rename from api/checkin.pl rename to svc/checkin.pl diff --git a/api/checkouts.pl b/svc/checkouts.pl similarity index 100% rename from api/checkouts.pl rename to svc/checkouts.pl diff --git a/api/holds.pl b/svc/holds.pl similarity index 100% rename from api/holds.pl rename to svc/holds.pl diff --git a/api/renew.pl b/svc/renew.pl similarity index 100% rename from api/renew.pl rename to svc/renew.pl -- 1.7.2.5