Subversion Repositories DevTools

Rev

Rev 5080 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5080 Rev 5087
Line 568... Line 568...
568
   }
568
   }
569
 
569
 
570
   // Store to cookie
570
   // Store to cookie
571
   document.cookie = '<%=COOKIE_RELMGR_SHOW_VIEW%>' + '=' + us;
571
   document.cookie = '<%=COOKIE_RELMGR_SHOW_VIEW%>' + '=' + us;
572
}
572
}
573
 
-
 
574
//  Name:   addSdk
-
 
575
//  Desc:   Button Action for adding an SDk to the Release
573
//  Load dialog to add an SDK to the Release
576
//          Will display a modal iframe and populate it with content
-
 
577
function addSdk()
574
function addSdk()
578
{
575
{
579
    var width = 400
-
 
580
    var height = 150
-
 
581
    var o1 = MM_findObj('sdkDiv');
-
 
582
    if (o1 != null )
-
 
583
    {
-
 
584
        o1.style.display = 'block';
-
 
585
        o1.style.height = $(document).height();
-
 
586
        o1.style.width = $(document).width();
-
 
587
        var o2 = MM_findObj('sdkDivWrap');
-
 
588
        o2.style.top = (window.innerHeight / 2) - height/2;
-
 
589
        o2.style.left = (window.innerWidth / 2) - width/2;
-
 
590
        o2.style.width = width;
-
 
591
        o2.style.height = height;
-
 
592
        var o3 = MM_findObj('sdkIframe');
-
 
593
        o3.src = '_wform_reference_sdk.asp?rtag_id=<%=parRtag_id%>';
576
    $('#popmenu').load('_wform_reference_sdk.asp', {rtag_id : <%=parRtag_id%>});
594
        $( "#sdkDivWrap" ).resizable().draggable({iframeFix: true});
-
 
595
 
-
 
596
        o1.addEventListener('click', closeIFrame);
-
 
597
    }
-
 
598
}
-
 
599
 
-
 
600
//  Name:   closeIFrame
-
 
601
//  Desc:   To be called from an embedded iFrame to close the 
-
 
602
//          div and optional display a new page
-
 
603
function closeIFrame(ref)
-
 
604
{
-
 
605
    var o1 = MM_findObj('sdkDiv');
-
 
606
    if (o1 != null ) {
-
 
607
        o1.style.display = 'none';
-
 
608
 
-
 
609
        var o3 = MM_findObj('sdkIframe');
-
 
610
        o3.src = 'about:blank';
-
 
611
    }
-
 
612
    if (ref != null) {
-
 
613
        ToggleDisplay('RelSdkProgressBar');
-
 
614
        console.log("closeIFrame:" + ref);
-
 
615
        window.location.href = ref;
-
 
616
    }
-
 
617
}
577
}
618
 
578
 
619
//-->
579
//-->
620
</script>
580
</script>
621
 
581