new static files.
Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
parent
83e792bcaa
commit
fe4f6c97d5
778 changed files with 71557 additions and 0 deletions
25
static/filer/js/popup_handling.js
Normal file
25
static/filer/js/popup_handling.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
(function($) {
|
||||
dismissPopupAndReload = function(win) {
|
||||
document.location.reload();
|
||||
win.close();
|
||||
};
|
||||
dismissRelatedImageLookupPopup = function(win, chosenId, chosenThumbnailUrl, chosenDescriptionTxt) {
|
||||
var name = windowname_to_id(win.name);
|
||||
var img_name = name + '_thumbnail_img';
|
||||
var txt_name = name + '_description_txt';
|
||||
var clear_name = name + '_clear';
|
||||
var elem = document.getElementById(name);
|
||||
document.getElementById(name).value = chosenId;
|
||||
document.getElementById(img_name).src = chosenThumbnailUrl;
|
||||
document.getElementById(txt_name).innerHTML = chosenDescriptionTxt;
|
||||
document.getElementById(clear_name).style.display = 'inline';
|
||||
win.close();
|
||||
};
|
||||
dismissRelatedFolderLookupPopup = function(win, chosenId, chosenName) {
|
||||
var id = windowname_to_id(win.name);
|
||||
var id_name = id + '_description_txt';
|
||||
document.getElementById(id).value = chosenId;
|
||||
document.getElementById(id_name).innerHTML = chosenName;
|
||||
win.close();
|
||||
};
|
||||
})(django.jQuery);
|
||||
Loading…
Add table
Add a link
Reference in a new issue