3 Jappix - An open social platform
4 These are the directory JS scripts for Jappix
6 -------------------------------------------------
10 Last revision: 03/03/11
14 // Opens the directory popup
15 function openDirectory() {
18 '<div class="top">' + _e("User directory") + '</div>' +
20 '<div class="content">' +
21 '<div class="directory-head">' +
22 '<div class="directory-server-text">' + _e("Server to query") + '</div>' +
24 '<input name="directory-server-input" class="directory-server-input" value="' + encodeQuotes(HOST_VJUD) + '" />' +
27 '<div class="results directory-results"></div>' +
30 '<div class="bottom">' +
31 '<div class="wait wait-medium"></div>' +
33 '<a href="#" class="finish">' + _e("Close") + '</a>' +
37 createPopup('directory', html);
39 // Associate the events
48 // Quits the directory popup
49 function closeDirectory() {
51 destroyPopup('directory');
56 // Launches a directory search
57 function startDirectory() {
58 // Get the server to query
59 var server = $('#directory .directory-server-input').val();
62 dataForm($('#directory .directory-server-input').val(), 'search', '', '', 'directory');
64 logThis('Directory search launched: ' + server);
70 function launchDirectory() {
72 $('#directory .bottom .finish').click(closeDirectory);
75 $('#directory .directory-server-input').keyup(function(e) {
79 $(this).val(HOST_VJUD);
81 // Start the directory search