Skip to content

Commit 8d94ec2

Browse files
committed
chore: config info
1 parent d2213c1 commit 8d94ec2

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

app/Http/Controllers/AccountController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ public function userExtcredits(Request $request)
101101
paginate: $result['data']['paginate'],
102102
);
103103

104-
return view('account.user-extcredits', compact('logs'));
104+
$extcreditsId = (int) $request->extcreditsId;
105+
106+
return view('account.user-extcredits', compact('extcreditsId', 'logs'));
105107
}
106108

107109
// users

resources/assets/js/fresns-iframe.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ function authorization() {
1818
(function ($) {
1919
$('#fresnsModal.fresnsExtensions').on('show.bs.modal', function (e) {
2020
let button = $(e.relatedTarget),
21+
fsHeight = button.data('fs-height'),
2122
title = button.data('title'),
2223
reg = /\{[^\}]+\}/g,
2324
url = button.data('url'),
@@ -43,13 +44,13 @@ function authorization() {
4344
let inputHtml = `<iframe src="` + url + `" class="iframe-modal"></iframe>`;
4445
$(this).find('.modal-body').empty().html(inputHtml);
4546

46-
// iFrame Resizer
47-
// http://davidjbradshaw.github.io/iframe-resizer/
47+
// iFrame Resizer V4
48+
// https://github.com/davidjbradshaw/iframe-resizer
4849
let isOldIE = navigator.userAgent.indexOf('MSIE') !== -1;
4950
$('#fresnsModal.fresnsExtensions iframe').on('load', function () {
5051
$(this).iFrameResize({
5152
autoResize: true,
52-
minHeight: 500,
53+
minHeight: fsHeight ? fsHeight : 500,
5354
heightCalculationMethod: isOldIE ? 'max' : 'lowestElement',
5455
scrolling: true,
5556
});

routes/web.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848

4949
// portal
5050
Route::get(fs_db_config('website_portal_path'), [PortalController::class, 'index'])->name('portal')->withoutMiddleware([AccountAuthorize::class, UserAuthorize::class]);
51-
Route::get('policies', [PortalController::class, 'policies'])->name('policies')->withoutMiddleware([AccountAuthorize::class, UserAuthorize::class]);
5251
Route::get('portal/{name}', [PortalController::class, 'customPage'])->name('custom.page')->withoutMiddleware([AccountAuthorize::class, UserAuthorize::class]);
5352

5453
// users

0 commit comments

Comments
 (0)