Browse Source

Fix editing tags not updating tags.

pull/24/head
Teknikode 8 years ago
parent
commit
47f39fee9b
  1. 4
      ricehalla/main.php
  2. 11
      templates/default/js/common.js

4
ricehalla/main.php

@ -135,12 +135,12 @@ @@ -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);
}
});
});

11
templates/default/js/common.js

@ -95,7 +95,16 @@ $(function() { @@ -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