summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks/js
diff options
context:
space:
mode:
authorGolnaz Nilieh <g382nilieh@gmail.com>2011-09-06 17:13:03 +0430
committerGolnaz Nilieh <g382nilieh@gmail.com>2011-09-06 17:13:03 +0430
commitc5aa139296e57211687e09d841ebd2d5ab8131c9 (patch)
tree0403ac8684b78e33ff09f8aa8495d9394f21cb6c /apps/bookmarks/js
parent0b5f0ac24934d5aa54de8dfab6c1de81971ccdb2 (diff)
downloadnextcloud-server-c5aa139296e57211687e09d841ebd2d5ab8131c9.tar.gz
nextcloud-server-c5aa139296e57211687e09d841ebd2d5ab8131c9.zip
Use an animated gif in add-bookmark form, while fetching metadata.
Diffstat (limited to 'apps/bookmarks/js')
-rw-r--r--apps/bookmarks/js/bookmarks.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/bookmarks/js/bookmarks.js b/apps/bookmarks/js/bookmarks.js
index 7a5865370d0..fe8a266686f 100644
--- a/apps/bookmarks/js/bookmarks.js
+++ b/apps/bookmarks/js/bookmarks.js
@@ -18,6 +18,7 @@ $(document).ready(function() {
$('.bookmarks_list').empty();
getBookmarks();
+
});
function getBookmarks() {
@@ -45,7 +46,8 @@ function getBookmarks() {
}
function getMetadata() {
- var url = encodeEntities($('#bookmark_add_url').val())
+ var url = encodeEntities($('#bookmark_add_url').val());
+ $('.loading_meta').css('display','inline');
$.ajax({
url: 'ajax/getMeta.php',
data: 'url=' + encodeURIComponent(url),
@@ -55,6 +57,7 @@ function getMetadata() {
if (pageinfo.data.description !== undefined){
$('#bookmark_add_description').val(pageinfo.data.description);
}
+ $('.loading_meta').css('display','none');
}
});
}