Changeset 2422


Ignore:
Timestamp:
12/13/12 15:48:54 (11 years ago)
Author:
twagoo
Message:

Display and hiding of oauth connect popup

Location:
ComponentRegistry/branches/ComponentRegistry-oauth-1.13.0/ComponentRegistry/src/main/webapp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/branches/ComponentRegistry-oauth-1.13.0/ComponentRegistry/src/main/webapp/css/flexui.css

    r2416 r2422  
    1010}
    1111
     12div#oauth_connect{
     13        display: none;
     14        position: fixed;
     15
     16        /* Position in horizontal centre */
     17        width: 800px;
     18        left: 50%;
     19        margin-left: -400px;
     20
     21        /* Position in vertical centre */
     22        height: 600px;
     23        top: 50%;
     24        margin-top: -300px;
     25       
     26        /* Show in front of flash app */
     27        z-index: 100;
     28       
     29        padding: 5px;
     30        background: #ccc;
     31}
     32
     33a#oauth_close_link{
     34        display: block;
     35        text-align: right;     
     36       
     37        width: 100%;
     38        height: 5%;
     39}
     40
    1241/* Style for the floating 'window' to acquire OAuth2 token */
    1342iframe#oauth_connect_frame {
    14     display: none;
    15     position: relative;
    16     height: 400px;
    17     width: 700px;
    18     left: 100px;
    19     top: 100px;
    20     z-index: 100;
     43        width: 100%;
     44        height: 95%;
    2145
    22     background: white;
     46        background: #fff;
    2347}
    2448
  • ComponentRegistry/branches/ComponentRegistry-oauth-1.13.0/ComponentRegistry/src/main/webapp/js/oauthConnect.js

    r2419 r2422  
    22    var frame = document.getElementById('oauth_connect_frame');
    33    frame.src = connectUri;
    4     frame.style.display = 'block';
     4   
     5    var div = document.getElementById('oauth_connect');
     6    div.style.display = 'block';
    57}
    68
     9function hideOAuthFrame() {
     10        var frame = document.getElementById('oauth_connect_frame');
     11    frame.src = "Javascript:''";
     12   
     13        var div = document.getElementById('oauth_connect');
     14    div.style.display = 'none';
     15}
     16
Note: See TracChangeset for help on using the changeset viewer.