summaryrefslogtreecommitdiff
path: root/source/help.js
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2016-12-22 18:29:20 +0100
committerJan Holesovsky <kendy@collabora.com>2016-12-22 21:26:31 +0100
commit76df8c42a30d1dd3a6bd015a28d36325d4798174 (patch)
tree573a2a7d9e6bde08541c2d9d724bcb31d639d078 /source/help.js
parentb46832dd2c7738ccb0bbd285792b113cc869cecb (diff)
help.js: Remove a param that is always '1'.
Diffstat (limited to 'source/help.js')
-rw-r--r--source/help.js14
1 files changed, 5 insertions, 9 deletions
diff --git a/source/help.js b/source/help.js
index 7cc7157546..5d7d5f7aa8 100644
--- a/source/help.js
+++ b/source/help.js
@@ -7,7 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-function loadXMLDoc(filename, response)
+function loadXMLDoc(filename)
{
if (window.ActiveXObject)
{
@@ -24,11 +24,7 @@ function loadXMLDoc(filename, response)
} catch(err) {} // Helping IE11
xhttp.send("");
- if (response == 1) {
- return xhttp.responseXML;
- }
-
- return xhttp.responseText;
+ return xhttp.responseXML;
}
function getParameterByName(name, url) {
@@ -53,8 +49,8 @@ function getParameterByName(name, url) {
function displayResult(file, moduleName, language, system)
{
- var xml = loadXMLDoc(file, 1);
- var xsl = loadXMLDoc('online_transform.xsl', 1);
+ var xml = loadXMLDoc(file);
+ var xsl = loadXMLDoc('online_transform.xsl');
var xsltProcessor;
var resultDocument;
var bookmarkHTML;
@@ -84,7 +80,7 @@ function displayResult(file, moduleName, language, system)
$(document).on('click', '#BottomLeft a, #DisplayArea a', function(e) {
e.preventDefault();
$('#search-bar').val('');
- var xml = loadXMLDoc($(this).attr('href'), 1);
+ var xml = loadXMLDoc($(this).attr('href'));
var resultDocument = xsltProcessor.transformToFragment(xml, document);
$("#DisplayArea").html($(resultDocument).find('#DisplayArea').html());
$("#TopRight").html('<p class="bug">Contents displayed is: '+$(this).attr('href')+'</p>');