Author: [email protected]
Date: Tue Jan 24 10:22:49 2012
New Revision: 1979

Log:
[AMDATUOPENSOCIAL-93] Added method to gadget utility methods that supports 
refreshing the dashboard

Modified:
   
trunk/amdatu-opensocial/opensocial-dashboard/src/main/resources/static/js/dashboard_gadget.js

Modified: 
trunk/amdatu-opensocial/opensocial-dashboard/src/main/resources/static/js/dashboard_gadget.js
==============================================================================
--- 
trunk/amdatu-opensocial/opensocial-dashboard/src/main/resources/static/js/dashboard_gadget.js
       (original)
+++ 
trunk/amdatu-opensocial/opensocial-dashboard/src/main/resources/static/js/dashboard_gadget.js
       Tue Jan 24 10:22:49 2012
@@ -47,7 +47,11 @@
     } else {
       return null;
     }
-}
+  }
+
+  function refreshDashboard() {
+    window.parent.location.reload(true);
+  }
 
   // Public methods and variables.
   return {
@@ -56,6 +60,7 @@
     ensureArray:ensureArray,
     show:show,
     hide:hide,
-    getCookie:getCookie
+    getCookie:getCookie,
+    refreshDashboard:refreshDashboard
   }
 }();
\ No newline at end of file
_______________________________________________
Amdatu-commits mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-commits

Reply via email to