wprintf("\" size=50 maxlength=1000 />");
wprintf("<div class=\"auto_complete\" id=\"recp_name_choices\"></div>");
- /** Pop open an address book -- begin **
+ /** Pop open an address book -- begin **/
wprintf(
"<a href=\"javascript:PopOpenAddressBook();\" title=\"%s\">"
"</a>", _("Contacts")
);
- ** Pop open an address book -- end **/
+ /** Pop open an address book -- end **/
wprintf("</td><td></td></tr>\n");
* closing the main div. FIXME put this in its own function so we can use it from the
* calendar too.
*/
- wprintf("</div><div id=\"address_book_popup_dropshadow\" style=\"display:none;\">");
- wprintf(" ");
wprintf("</div><div id=\"address_book_popup\" style=\"display:none;\">");
+ wprintf("<div id=\"address_book_popup_middle_div\">");
wprintf("<table border=0 width=100%%><tr valign=middle>");
wprintf("<td align=left><img src=\"static/viewcontacts_32x.gif\"></td>");
- wprintf("<td align=center>%s</td>", _("Contacts") );
+ wprintf("<td align=center><span class=\"address_book_popup_title\">%s</span></td>", _("Contacts") );
wprintf("<td align=right "
- "onclick=\"javascript:$('address_book_popup').style.display='none'; $('address_book_popup_dropshadow').style.display='none';\" "
+ "onclick=\"javascript:$('address_book_popup').style.display='none';\" "
"><img src=\"static/closewindow.gif\">");
- wprintf("</td></tr></table><hr>");
+ wprintf("</td></tr></table>");
wprintf("<div id=\"address_book_inner_div\"></div>");
+ wprintf("</div>");
DONE: wDumpContent(1);
}
// Pop open the address book
function PopOpenAddressBook() {
$('address_book_inner_div').innerHTML = "<div align=center><br><table border=0 cellpadding=10 bgcolor=\"#ffffff\"><tr><td><img src=\"static/throbber.gif\" /><font color=\"#AAAAAA\"> Loading....</font></td></tr></table><br /></div>";
- $('address_book_popup_dropshadow').style.display = 'block';
$('address_book_popup').style.display = 'block';
+ Nifty('div#address_book_popup_middle_div','big transparent');
new Ajax.Updater(
'address_book_inner_div',
'display_address_book_inner_div',
- { method: 'get', parameters: Math.random() }
+ {
+ method: 'get',
+ parameters: Math.random()
+ }
);
}
text-align: left;
}
-#address_book_popup_dropshadow {
- position: absolute;
- top: 110px;
- left: 210px;
- width: 320px;
- height: 300px;
- z-index: 99;
- background-color: #fff;
- filter:alpha(opacity=50);
- -moz-opacity:.50;
- opacity:.50;
- display: none;
-}
-
#address_book_popup {
position: absolute;
top: 100px;
- left: 200px;
+ left: 25%;
width: 320px;
- height: 300px;
+ height: auto;
z-index: 100;
- background-color: #ffc;
- color:#000;
+ background-color: #fff;
+ color: #000;
display: none;
}
+
+#address_book_popup_middle_div {
+ position: relative;
+ width: 100%;
+ height: 100%;
+ background-color: #ffd;
+}
+
+#address_book_inner_div {
+ margin: 5px;
+}
+
+.address_book_popup_title {
+ font-size: 14pt;
+ font-weight: bold;
+ color: #000;
+}