Commit 02a2e850 by Takumi Imai

Merge branch 'feature/1.0_check_web_dev_kdh_2' into 'feature/1.0_check_web_dev'

Feature/1.0 check web dev kdh 2

See merge request !125
parents 95bd5b9c d4525ea9
......@@ -7,20 +7,24 @@
var RL = {};
RL.isQuickReport;
RL.isQRTableInspect;
/**
* init
*/
RL.init = function () {
//Check if user is logged in
COMMON.showLoading();
COMMON.checkAuth(false);
COMMON.checkQuickReport(function(result) {
if (result) RL.isQuickReport = result.isQuickReport;
} );
RL.loadCommon();
RL.initTaskReportList();
COMMON.closeLoading();
//Check if user is logged in
COMMON.showLoading();
COMMON.checkAuth(false);
COMMON.checkQuickReport(function(result) {
if (result) {
RL.isQuickReport = result.isQuickReport;
RL.isQRTableInspect = result.isQRTableInspect;
};
});
RL.loadCommon();
RL.initTaskReportList();
COMMON.closeLoading();
};
/**
......@@ -87,16 +91,21 @@
/**
* load main title callcack
*/
RL.loadMainTitleCallback = function () {
//add dashboard setting item
if (RL.isQuickReport) {
var elmA = $('<div id="btnPdfPrint" onclick="RL.goPdfPrint();">');
let elmImg = $('<img src="../common/img/icon_pdf.svg" alt="pdf出力" class="p-1 w-40px" data-toggle="tooltip" data-placement="bottom" title="pdfPrint">');
elmImg.attr('title', I18N.i18nText('reportList'));
elmA.append(elmImg);
$('#mainTitleHeader').after(elmA);
}
};
RL.loadMainTitleCallback = function () {
//add dashboard setting item
if (RL.isQuickReport) {
var elmA;
if (RL.isQRTableInspect) {
elmA = $('<div id="btnPdfPrint" onclick="COMMON.showAlert("errorOccurred");">');
} else {
elmA = $('<div id="btnPdfPrint" onclick="RL.goPdfPrint();">');
}
let elmImg = $('<img src="../common/img/icon_pdf.svg" alt="pdf出力" class="p-1 w-40px" data-toggle="tooltip" data-placement="bottom" title="pdfPrint">');
elmImg.attr('title', I18N.i18nText('reportList'));
elmA.append(elmImg);
$('#mainTitleHeader').after(elmA);
}
};
/**
* go pdf print
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment