/[drupal]/contributions/modules/bluga/bluga.js
ViewVC logotype

Contents of /contributions/modules/bluga/bluga.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Sun Nov 1 02:53:44 2009 UTC (3 weeks, 5 days ago) by hanenkamp
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, DRUPAL-6--1-1, HEAD
Branch point for: DRUPAL-6--1
Changes since 1.1: +19 -0 lines
File MIME type: text/javascript
Merged latest from DRUPAL-5
1 ;(function(){
2
3 function checkAndRefresh(rid, uri) {
4 var bluga_id = "#bluga-waiting-" + rid;
5 if ($(bluga_id).length > 0) {
6 $.get(uri, null, function(data) {
7 $(bluga_id).after(data)
8 $(bluga_id).remove();
9 });
10
11 Drupal.refreshBlugaWebThumb(rid, uri);
12 }
13 }
14
15 Drupal.refreshBlugaWebThumb = function(rid, uri) {
16 setTimeout(function() { checkAndRefresh(rid, uri); }, 30000);
17 };
18
19 })();

  ViewVC Help
Powered by ViewVC 1.1.2