2023-04-28 12:22:26 +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=38" //+ 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);
});
});
//}
})