barryvdh / laravel-elfinder

elFinder bundle for Laravel
741 stars 171 forks source link

standalone Popup window size issue #302

Closed Zubair-Iftikhar closed 3 years ago

Zubair-Iftikhar commented 3 years ago

for standalone window size too small & below the theme... i'm using Adminlte 3 FileManger Issue HTML

<div class="form-group">
                                <label for="feature_image">Feature Image</label>
                                <input type="text" id="feature_image" name="feature_image" value="">
                                <a href="" class="popup_selector" data-inputid="feature_image">Select Image</a>

                            </div>

standalonepopup.min.js

$(document).on('click','.popup_selector',function (event) {
    event.preventDefault();
    var updateID = $(this).attr('data-inputid'); // Btn id clicked
    var elfinderUrl = '/elfinder/popup/';

    // trigger the reveal modal with elfinder inside
    var triggerUrl = elfinderUrl + updateID;
    $.colorbox({
        href: triggerUrl,
        fastIframe: true,
        iframe: true,
        width: '70%',
        height: '50%'
    });

});
// function to update the file selected by elfinder
function processSelectedFile(filePath, requestingField) {
    $('#' + requestingField).val(filePath).trigger('change');
}
Zubair-Iftikhar commented 3 years ago

for standalone window size too small & below the theme... i'm using Adminlte 3 FileManger Issue HTML

<div class="form-group">
                                <label for="feature_image">Feature Image</label>
                                <input type="text" id="feature_image" name="feature_image" value="">
                                <a href="" class="popup_selector" data-inputid="feature_image">Select Image</a>

                            </div>

standalonepopup.min.js

$(document).on('click','.popup_selector',function (event) {
    event.preventDefault();
    var updateID = $(this).attr('data-inputid'); // Btn id clicked
    var elfinderUrl = '/elfinder/popup/';

    // trigger the reveal modal with elfinder inside
    var triggerUrl = elfinderUrl + updateID;
    $.colorbox({
        href: triggerUrl,
        fastIframe: true,
        iframe: true,
        width: '70%',
        height: '50%'
    });

});
// function to update the file selected by elfinder
function processSelectedFile(filePath, requestingField) {
    $('#' + requestingField).val(filePath).trigger('change');
}

issue solve colorbox css file issue