24 lines
680 B
JavaScript
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);
|
|
});
|
|
});
|
|
//}
|
|
})
|