first commit

This commit is contained in:
2024-01-08 09:33:24 +07:00
commit ed1d4a2b08
2369 changed files with 875560 additions and 0 deletions
@@ -0,0 +1,21 @@
var getUrl = window.location;
var baseUrl = getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[1];
var controller = baseUrl + '/company_profile';
$(document).ready(function () {
load_setting();
});
function load_setting(key) {
$.ajax({
url: baseUrl + '/companyProfile/load_setting',
type: "POST",
data: {},
async: false,
cache: false,
success: function (data) {
console.log(data);
$("#div-setting").html(data);
}
});
}
+27
View File
@@ -0,0 +1,27 @@
var getUrl = window.location;
var baseUrl = getUrl.protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[1];
var controller = baseUrl + '/profile';
$("body").off("click", "#btn-reset").on("click", "#btn-reset", function (e) {
var key = $(this).attr("data-key");
load_modal(key);
});
function load_modal(key) {
$.ajax({
type: 'POST',
url: baseUrl + '/profile/load_modal',
data: {
key: key
},
success: function (data) {
$("#div-reset").html(data);
$('#modal-reset').modal('show');
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
},
complete: function () {
}
});
}