38 lines
1.0 KiB
JavaScript
38 lines
1.0 KiB
JavaScript
$(".openAction").click(function () {
|
|
$(this).next().find(".operations-btns").slideToggle(500);
|
|
$(".operations-btns").not($(this).next().find(".operations-btns")).slideUp(500);
|
|
});
|
|
$(document).ready(function () {
|
|
$(this).find(".operations-btns").first().slideToggle(500);
|
|
});
|
|
|
|
$(document).ready(function () {
|
|
if (hasRollCallService) {
|
|
if (!hasCameraAccount || !hasRollCallWorkshopSetting) {
|
|
window.location.href = saveCameraAccountUrl;
|
|
}
|
|
}
|
|
|
|
|
|
$('.loadingButton').on('click', function () {
|
|
var button = $(this);
|
|
var loadingDiv = button.find('.loading');
|
|
loadingDiv.show();
|
|
});
|
|
});
|
|
|
|
// function AjaxPlans(id) {
|
|
// $.ajax({
|
|
// url: '@Url.Page("./Plans")',
|
|
// type: 'GET',
|
|
// headers: {
|
|
// 'workshopId': id
|
|
// },
|
|
// success: function (response) {
|
|
// window.location.href = '@Url.Page("./Plans")'
|
|
// },
|
|
// error: function (e) {
|
|
// console.log('error: ' + e)
|
|
// }
|
|
// });
|
|
// }
|