|
@@ -493,7 +493,7 @@ $(document).ready(function() {
|
|
|
url: "php/get-tags.php",
|
|
|
dataType: "JSON",
|
|
|
data: {
|
|
|
- "username": username
|
|
|
+ "canvas_id": canvasId
|
|
|
},
|
|
|
timeout: 5000,
|
|
|
success: function(returnData) {
|
|
@@ -572,7 +572,7 @@ $(document).ready(function() {
|
|
|
Should this still become an issue later on, try increasing the amount of milliseconds.
|
|
|
*/
|
|
|
window.setTimeout(function() {
|
|
|
- // For every added item
|
|
|
+ // For every added item
|
|
|
$("li.added_item .expandable").each(function() {
|
|
|
// Declarations
|
|
|
// var instanceCounter;
|
|
@@ -627,15 +627,13 @@ $(document).ready(function() {
|
|
|
|
|
|
// Get the tags from the database
|
|
|
function getTags() {
|
|
|
- // Declarations
|
|
|
-
|
|
|
// AJAX
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
url: "php/get-tags.php",
|
|
|
dataType: "JSON",
|
|
|
data: {
|
|
|
- "username": username
|
|
|
+ "canvas_id": canvasId
|
|
|
},
|
|
|
timeout: 5000,
|
|
|
success: function(returnData) {
|
|
@@ -684,7 +682,7 @@ $(document).ready(function() {
|
|
|
dataType: "text",
|
|
|
data: {
|
|
|
"tag": tagToAJAX,
|
|
|
- "username": username
|
|
|
+ "canvas_id": canvasId
|
|
|
},
|
|
|
timeout: 5000,
|
|
|
success: function(returnData) {
|
|
@@ -750,7 +748,7 @@ $(document).ready(function() {
|
|
|
dataType: "text",
|
|
|
data: {
|
|
|
"tag": tagToAJAX,
|
|
|
- "username": username
|
|
|
+ "canvas_id": canvasId
|
|
|
},
|
|
|
timeout: 5000,
|
|
|
success: function(returnData) {
|
|
@@ -782,7 +780,7 @@ $(document).ready(function() {
|
|
|
dataType: "JSON",
|
|
|
data: {
|
|
|
"tag": tagToAJAX,
|
|
|
- "username": username
|
|
|
+ "canvas_id": canvasId
|
|
|
},
|
|
|
timeout: 5000,
|
|
|
success: function(returnData) {
|
|
@@ -896,7 +894,7 @@ $(document).ready(function() {
|
|
|
data: {
|
|
|
"tag": tagToAJAX,
|
|
|
"description": description,
|
|
|
- "username": username
|
|
|
+ "canvas_id": canvasId
|
|
|
},
|
|
|
url: "php/save-tag.php",
|
|
|
success: function() {
|
|
@@ -935,7 +933,7 @@ $(document).ready(function() {
|
|
|
type: "post",
|
|
|
data: {
|
|
|
"tag": tagToAJAX,
|
|
|
- "username": username
|
|
|
+ "canvas_id": canvasId
|
|
|
},
|
|
|
url: "php/delete-tag.php",
|
|
|
success: function() {
|