Skip to content
Snippets Groups Projects
Commit 329708db authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update functions.js

parent 4cbb60e4
No related branches found
No related tags found
1 merge request!3Restyle with AdminLTE
......@@ -44,6 +44,7 @@ function getQueryParams() {
* @returns {undefined}
*/
function getPageItem(id, sMoreData, bNoAdressbarUpdate) {
var contentid=id+"-content";
clog("getPageItem('"+id+"', '"+sMoreData+"')");
// $('#'+id).html('reading ...');
if (!$('#' + id).hasClass('active')) {
......@@ -64,11 +65,11 @@ function getPageItem(id, sMoreData, bNoAdressbarUpdate) {
type: "GET",
success: function (data) {
$('#' + id).css('opacity', '1');
$('#' + id).html(data);
$('#' + contentid).html(data);
},
error: function () {
$('#' + id).css('opacity', false);
$('#' + id).html('Failed :-/');
$('#' + contentid).html('Failed :-/');
$('#errorlog').html(
$('#errorlog').html('AJAX error: <a href="' + phpscript + '?' + sData + '">' + phpscript + '?' + sData + '</a>')
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment