I call several non-modal dialogs. But when I click on the previous one, it doesn't go to the front. How to put a non-modal dialog window to the front?

asked 12 Apr '14, 01:17

Ramil's gravatar image

Ramil
41216
accept rate: 0%


Hi Ramil,

Unfortunately, this is a known bug.

Kind Regards,
Yalim

link

answered 14 Apr '14, 11:11

Yalim's gravatar image

Yalim ♦♦
2.8k5
accept rate: 22%

This will be fixed in the near future?

And another question: Will the added ability to expand and collapse the dialog windows?

link

answered 14 Apr '14, 14:36

Ramil's gravatar image

Ramil
41216
accept rate: 0%

The FS 1.8 isn't fixed. The non-modal dialogs doesn't put to the front.

link

answered 05 Sep '14, 03:44

Ramil's gravatar image

Ramil
41216
accept rate: 0%

We have written the js code and included it to the "main.jsp":

$( document).ready( function() {
    $( '.bdf-dialog').live( 'click', function(){
        var dlgName = $( this).attr( 'id');
        dlgToFront( dlgName);
    });
});

function sDecrease( i, ii)
{
    if ( i > ii)
        return -1;
    else if ( i < ii)
        return 1;
    else
        return 0;
}

function dlgToFront( dlgName)
{
    var dlgId = '#' + dlgName;
    var arr_zindex = [];
    var max_zindex;
    var cur_zindex = $( dlgId).css( 'z-index') | 0;
    var tmp_zindex;

    $( '.bdf-dialog').each( function( indx, element){
        arr_zindex.push( $( element).css( 'z-index'));
    });

    arr_zindex = arr_zindex.sort(sDecrease);
    max_zindex = arr_zindex[0];

    if ( cur_zindex < max_zindex)
    {
        $( dlgId).css( 'z-index', max_zindex);

        $( '.bdf-dialog').each(function( indx, element) {
            tmp_zindex = $( element).css( 'z-index') | 0;
            if ( $( element).attr('id') != dlgName && tmp_zindex > cur_zindex)
            {
                $( element).css( 'z-index', ( tmp_zindex - 10));
            }
        });
    }

    return true;
}
link

answered 05 Sep '14, 04:00

Ramil's gravatar image

Ramil
41216
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×14
×1
×1

Asked: 12 Apr '14, 01:17

Seen: 1,435 times

Last updated: 05 Sep '14, 04:00


© Copyright Gerger 2017