MediaWiki:BibleGet.js: Difference between revisions
Content deleted Content added
Johnrdorazio (talk | contribs) No edit summary |
Johnrdorazio (talk | contribs) No edit summary |
||
Line 84: | Line 84: | ||
} |
} |
||
}); |
}); |
||
} else { |
|||
//if it's not inline we do have to deal with it again |
|||
$.ajax({ |
|||
method: 'POST', |
|||
url: '../w/bgetHelper.php', |
|||
data: { |
|||
"version": version, |
|||
"ref": ref |
|||
}, |
|||
success: function(data){ |
|||
if(data.hasOwnProperty('html')){ |
|||
$el.append(data.html); |
|||
$el.append($('<p>',{"text": " — powered by BibleGet I/O","css":{"font-size":".9em","text-align":"right","font-style":"italic","font-weight":"bold","color":"gray"}})); |
|||
} |
|||
}, |
|||
error: function(jqXHR, textStatus, errorThrown){ |
|||
console.log("There was an error while trying to communicate with the BibleGet server:") |
|||
console.log(errorThrown + ' ' + textStatus + ': ' + jqXHR.responseText); |
|||
} |
|||
}); //END ajax |
|||
} |
} |
||
} else { |
} else { |
||
Line 170: | Line 190: | ||
} else { |
} else { |
||
$el.append(data.html); |
$el.append(data.html); |
||
$el.append($('<p>',{"text": " — powered by BibleGet I/O","css":{"font-size":".9em","text-align":"right","font-style":"italic","font-weight":"bold","color":"gray"}})); |
|||
} |
} |
||
} |
} |