2012-04-26, 19:55:53
Simply put:
http://get-simple.info/wiki/plugins:tips...r_messages
does not seem to work...
I don't get the success or error messages with the undo link.
link_manager and news_manager seem to suffer from the same defect.
Any help appreciated.
The process uses ajax and this is what jquery.getsimple.js logs as the response in the console:
This seems to be the responsible part from jquery.getsimple.js:
http://get-simple.info/wiki/plugins:tips...r_messages
does not seem to work...
I don't get the success or error messages with the undo link.
link_manager and news_manager seem to suffer from the same defect.
Any help appreciated.
The process uses ajax and this is what jquery.getsimple.js logs as the response in the console:
Code:
[... standard header stuff here ...]
<div class="wrapper">
<div class="bodycontent clearfix">
<div id="maincontent">
<div class="main">
<script type="text/javascript">
$(function() {
$('div.bodycontent').before('<div class="updated" style="display:block;">'+
"The person has been deleted. <a href=\"load.php?id=person_manager&undo\">Undo<\/a>"+'</div>');
$(".updated, .error").fadeOut(500).fadeIn(500);
});
</script>
<h3 class="floated">Person Management</h3>
This seems to be the responsible part from jquery.getsimple.js:
Code:
[... whole-lot more js here ...]
$.ajax({
type: "GET",
url: dlink,
success: function(response){
console.log(response); /* LOG RESPONSE TO DETECT PROBLEMS */
mytr.remove();
if($("#pg_counter").length) {
counter=$("#pg_counter").html();
$("#pg_counter").html(counter-1);
}
$('div.wrapper .updated').remove();
$('div.wrapper .error').remove();
if($(response).find('div.error').html()) {
$('div.bodycontent').before('<div class="error"><p>'+ $(response).find('div.error').html() + '</p></div>');
popAlertMsg();
}
if($(response).find('div.updated').html()) {
$('div.bodycontent').before('<div class="updated"><p>'+ $(response).find('div.updated').html() + '</p></div>');
popAlertMsg();
}
}
});