Subversion Repositories DevTools

Rev

Rev 6651 | Rev 6697 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6651 Rev 6695
Line 469... Line 469...
469
                    })
469
                    })
470
                .css({position : 'absolute', top : '0px', right : '0px'})
470
                .css({position : 'absolute', top : '0px', right : '0px'})
471
                .click(function(event){
471
                .click(function(event){
472
                    vixEtableData =  $(this).closest('table');
472
                    vixEtableData =  $(this).closest('table');
473
                    var menu = '<div class="rex_clm" >&nbsp;Select Operation</div>';
473
                    var menu = '<div class="rex_clm" >&nbsp;Select Operation</div>';
-
 
474
                    menu += '<div class="mmItem" onClick="vixEtableProc(\'popup\');">Show&nbsp;in&nbsp;New&nbsp;Window</div>';
474
                    menu += '<div class="mmItem" onClick="vixEtableProc(\'popup\');">Show in PopUp</div>';
475
                    menu += '<div class="mmItem" onClick="vixEtableProc(\'modal\');">Show in Dialog</div>';
475
                    menu += '<div class="mmItem" onClick="vixEtableProc(\'download\');">Download File</div>';
476
                    menu += '<div class="mmItem" onClick="vixEtableProc(\'download\');">Download File</div>';
476
                    menu += '<div class="mmItem" onClick="vixEtableProc(\'clip\');">Copy to Clipboard</div>';
477
                    menu += '<div class="mmItem" onClick="vixEtableProc(\'clip\');">Copy to Clipboard</div>';
477
                    showmenu(event,menu);
478
                    showmenu(event,menu);
478
                    event.stopImmediatePropagation();
479
                    event.stopImmediatePropagation();
479
                    event.stopPropagation();
480
                    event.stopPropagation();
Line 496... Line 497...
496
    if ( mode == 'clip' ) {
497
    if ( mode == 'clip' ) {
497
        vixTextToClipBoard(data, {note : "CSV copied to Clipboard", duration : 1000});
498
        vixTextToClipBoard(data, {note : "CSV copied to Clipboard", duration : 1000});
498
    }
499
    }
499
}
500
}
500
 
501
 
-
 
502
// Create a new window in the center of the current screen
-
 
503
//  A wrapper for window.open(), with a few smarts
-
 
504
//  Does not position correctly on Widows-Edge
-
 
505
function PopupCenter(url, title, w, h) {
-
 
506
    // Fixes dual-screen position                         Most browsers      Firefox
-
 
507
    var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : window.screenX;
-
 
508
    var dualScreenTop = window.screenTop != undefined ? window.screenTop : window.screenY;
-
 
509
 
-
 
510
    var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
-
 
511
    var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;
-
 
512
 
-
 
513
    var left = ((width / 2) - (w / 2)) + dualScreenLeft;
-
 
514
    var top = ((height / 2) - (h / 2)) + dualScreenTop;
-
 
515
    var newWindow = window.open(url, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);
-
 
516
 
-
 
517
    // Puts focus on the newWindow
-
 
518
    if (window.focus) {
-
 
519
        newWindow.focus();
-
 
520
    }
-
 
521
 
-
 
522
    return newWindow;
-
 
523
}
-
 
524
 
-
 
525
 
501
 
526
 
502
 
527
 
503
 
528
 
504
 
529
 
505
 
530