Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[fix] loginbox: fix for loginbox quick display when loading

  • Loading branch information...
commit 72ef54aebe527aa35b5f5a80009efc03a17805e5 1 parent 53cc032
Frederic Ye authored September 06, 2011

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  stdlib/widgets/loginbox/loginbox.opa
6  stdlib/widgets/loginbox/loginbox.opa
@@ -152,13 +152,13 @@ WLoginbox =
152 152
       logged_id   = get_logged_id(id)
153 153
       unlogged_id   = get_unlogged_id(id)
154 154
       (login_css, _ /* logout_css */ ) = // Display login or logout box?
155  
-        Option.switch(_ -> (css {display: none;}, []),
156  
-            ([], css{display: none;}), usr_opt)
  155
+        Option.switch(_ -> ("display:none", ""),
  156
+            ("", "display:none"), usr_opt)
157 157
       login_form(init_username: string, init_password: string) =
158 158
       /* ugly hack : needs iframe to be the fake target of the submit form  */
159 159
         <iframe src="{prepend}{fake_url_1}" id="{iframe_id}" name="{iframe_id}" style="display:none;with:0px;height:0px;"></iframe>
160 160
         <form  target="{iframe_id}" method="post"  action="{prepend}{fake_url_2}" name="{form_id}" id="{form_id}" autocomplete="on" onsubmit={on_login(id, login_action)} >
161  
-        <span id={get_not_logged_id(id)} style={login_css}>
  161
+        <span id={get_not_logged_id(id)} style="{login_css}">
162 162
           {match config.login_label
163 163
            {some=s} -> <label for={username_id}>{s}</label>
164 164
            {none} -> <></>}

0 notes on commit 72ef54a

Please sign in to comment.
Something went wrong with that request. Please try again.