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
This commit is part of merge request !3. Comments created here will be created in the context of that merge request.
...@@ -44,6 +44,7 @@ function getQueryParams() { ...@@ -44,6 +44,7 @@ function getQueryParams() {
* @returns {undefined} * @returns {undefined}
*/ */
function getPageItem(id, sMoreData, bNoAdressbarUpdate) { function getPageItem(id, sMoreData, bNoAdressbarUpdate) {
var contentid=id+"-content";
clog("getPageItem('"+id+"', '"+sMoreData+"')"); clog("getPageItem('"+id+"', '"+sMoreData+"')");
// $('#'+id).html('reading ...'); // $('#'+id).html('reading ...');
if (!$('#' + id).hasClass('active')) { if (!$('#' + id).hasClass('active')) {
...@@ -64,11 +65,11 @@ function getPageItem(id, sMoreData, bNoAdressbarUpdate) { ...@@ -64,11 +65,11 @@ function getPageItem(id, sMoreData, bNoAdressbarUpdate) {
type: "GET", type: "GET",
success: function (data) { success: function (data) {
$('#' + id).css('opacity', '1'); $('#' + id).css('opacity', '1');
$('#' + id).html(data); $('#' + contentid).html(data);
}, },
error: function () { error: function () {
$('#' + id).css('opacity', false); $('#' + id).css('opacity', false);
$('#' + id).html('Failed :-/'); $('#' + contentid).html('Failed :-/');
$('#errorlog').html( $('#errorlog').html(
$('#errorlog').html('AJAX error: <a href="' + phpscript + '?' + sData + '">' + phpscript + '?' + sData + '</a>') $('#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