mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 09:58:49 +00:00
jappixmini: include jappix source
This commit is contained in:
parent
61eb1f0d18
commit
302b2820d1
231 changed files with 96082 additions and 2 deletions
42
jappixmini/jappix/js/popup.js
Normal file
42
jappixmini/jappix/js/popup.js
Normal file
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
|
||||
Jappix - An open social platform
|
||||
These are the popup JS scripts for Jappix
|
||||
|
||||
-------------------------------------------------
|
||||
|
||||
License: AGPL
|
||||
Author: Vanaryon
|
||||
Last revision: 26/04/11
|
||||
|
||||
*/
|
||||
|
||||
// Creates a popup code
|
||||
function createPopup(id, content) {
|
||||
// Popup exists?
|
||||
if(exists('#' + id))
|
||||
return false;
|
||||
|
||||
// Append the popup code
|
||||
$('body').append(
|
||||
'<div id="' + id + '" class="lock removable">' +
|
||||
'<div class="popup">' +
|
||||
content +
|
||||
'</div>' +
|
||||
'</div>'
|
||||
);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Destroys a popup code
|
||||
function destroyPopup(id) {
|
||||
// Stop the popup timers
|
||||
$('#' + id + ' *').stopTime();
|
||||
|
||||
// Remove the popup
|
||||
$('#' + id).remove();
|
||||
|
||||
// Manage input focus
|
||||
inputFocus();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue