Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Adnan Ahmad
/
Assignments
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
61b78aa1
...
61b78aa1dde19702bbece9b556e6c456713a7ba1
authored
2018-05-08 10:17:44 +0200
by
Adnan Ahmad
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update jquery.js
1 parent
37843215
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
script/jquery.js
script/jquery.js
View file @
61b78aa
...
...
@@ -72,7 +72,7 @@ $(document).ready(function(){
// get data from database through ajax
$
.
ajax
({
type
:
'GET'
,
url
:
'/Assignment/get.php'
,
url
:
'/Assignment
s
/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
:
'/Assignment
s
/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
:
'/Assignment
s
/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
:
'/Assignment
s
/database.php'
,
data
:{
'id'
:
id
,
'action'
:
action
},
success
:
function
(
info
){
alert
(
info
);
...
...
Please
register
or
sign in
to post a comment