Browse Source

Fix editing tags not updating tags.

pull/24/head
Teknikode 7 years ago
parent
commit
47f39fee9b
2 changed files with 12 additions and 3 deletions
  1. 2
    2
      ricehalla/main.php
  2. 10
    1
      templates/default/js/common.js

+ 2
- 2
ricehalla/main.php View File

@@ -135,12 +135,12 @@
afterAddingTag: function(tag){
var current_tags = $('#taglist-<?php echo $result['id']; ?>').tags().getTags();
var url = "../edit_tags.php?id=<?php echo $result['id']; ?>&tags="+current_tags;
var response = Get_Server_Response(url);
postServerData(url);
},
afterDeletingTag: function(tag){
var current_tags = $('#taglist-<?php echo $result['id']; ?>').tags().getTags();
var url = "../edit_tags.php?id=<?php echo $result['id']; ?>&tags="+current_tags;
var response = Get_Server_Response(url);
postServerData(url);
}
});
});

+ 10
- 1
templates/default/js/common.js View File

@@ -95,7 +95,16 @@ $(function() {
// Fix input element click problem
$('.dropdown input, .dropdown label').click(function(e) {
e.stopPropagation();
});
});

function postServerData(url, data)
{
$.ajax({
type: "POST",
url: url,
data: data
});
}
});

function removeAmp(code)

Loading…
Cancel
Save