]> git.mxchange.org Git - friendica-addons.git/blob - jappixmini/jappix/js/popup.js
Removed the word "Settings" from the settings. This information is redundant.
[friendica-addons.git] / jappixmini / jappix / js / popup.js
1 /*
2
3 Jappix - An open social platform
4 These are the popup JS scripts for Jappix
5
6 -------------------------------------------------
7
8 License: AGPL
9 Author: Vanaryon
10 Last revision: 26/04/11
11
12 */
13
14 // Creates a popup code
15 function createPopup(id, content) {
16         // Popup exists?
17         if(exists('#' + id))
18                 return false;
19         
20         // Append the popup code
21         $('body').append(
22                 '<div id="' + id + '" class="lock removable">' + 
23                         '<div class="popup">' + 
24                                 content + 
25                         '</div>' + 
26                 '</div>'
27         );
28         
29         return true;
30 }
31
32 // Destroys a popup code
33 function destroyPopup(id) {
34         // Stop the popup timers
35         $('#' + id + ' *').stopTime();
36         
37         // Remove the popup
38         $('#' + id).remove();
39         
40         // Manage input focus
41         inputFocus();
42 }