2023-06-05 10:10:22 +08:00

24 lines
680 B
JavaScript

require.config({
baseUrl: 'js',
paths: {
//jquery: "../../js/jquery-3.6.0.min",
//spectrum: "../../js/spectrum"
},
waitSeconds: 0,
urlArgs: "v=39" //+ Math.random()
})
requirejs(['modules/inspects/editinspection'], function (EditModule) {
//if (isAdmin) {
$(function () {
$('#button-edit').click(function () {
var ei = new EditModule.EditInspection(function () {
window.location = window.location.href;
}, reportid);
$('#right_popup').empty().append(ei.createContent());
showRightPopup(true);
});
});
//}
})