Commit 61b78aa1 61b78aa1dde19702bbece9b556e6c456713a7ba1 by Adnan Ahmad

Update jquery.js

1 parent 37843215
......@@ -72,7 +72,7 @@ $(document).ready(function(){
// get data from database through ajax
$.ajax({
type:'GET',
url: '/Assignment/get.php',
url: '/Assignments/get.php',
success: function (data){
items = JSON.parse(data);
//console.log(items);
......@@ -173,7 +173,7 @@ $('#item_form').on('submit', function (e) {
data = new FormData(document.getElementById('item_form'));
$.ajax({
type: 'POST',
url: '/Assignment/database.php',
url: '/Assignments/database.php',
data: data,
cache: false,
processData: false,
......@@ -191,7 +191,7 @@ $('#item_form').on('submit', function (e) {
id = $(this).attr('value');
$.ajax({
type:'POST',
url: '/Assignment/get.php',
url: '/Assignments/get.php',
data:{'id':id},
datatype: 'JSON',
success: function (data){
......@@ -213,7 +213,7 @@ $('#item_form').on('submit', function (e) {
if(confirm('Are you sure you want to delete this?')){
$.ajax({
type:'POST',
url: '/Assignment/database.php',
url: '/Assignments/database.php',
data:{'id':id, 'action':action},
success: function (info){
alert(info);
......