# HG changeset patch # User Sverre Rabbelier # Date 1234729535 0 # Node ID 32d8d83678cd2d4a6178bb0956e95fa37ca703b3 # Parent 7a00bcfa0371a2ed96f48fdd581840e4746e526d Make various JS methods into their own file This facilitates re-use of these files. Patch by: Sverre Rabbelier diff -r 7a00bcfa0371 -r 32d8d83678cd app/soc/content/js/datetime-loader.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/content/js/datetime-loader.js Sun Feb 15 20:25:35 2009 +0000 @@ -0,0 +1,5 @@ +$(function() +{ +$('.datetime-pick').datetimepicker(); +}); + diff -r 7a00bcfa0371 -r 32d8d83678cd app/soc/content/js/feed-loader.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/content/js/feed-loader.js Sun Feb 15 20:25:35 2009 +0000 @@ -0,0 +1,8 @@ +google.load("feeds", "1"); + +function initialize() { + var blog = new BlogPreview(document.getElementById("blog")); + blog.show("{{ entity.feed_url }}", 3); +} +google.setOnLoadCallback(initialize); + diff -r 7a00bcfa0371 -r 32d8d83678cd app/soc/content/js/org-accept.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/soc/content/js/org-accept.js Sun Feb 15 20:25:35 2009 +0000 @@ -0,0 +1,45 @@ +$(document).ready(function() { + $("#applications_progress_bar").progressBar({showText: false}); +}); + +function acceptOrgInit() { + $("#acceptance_text").fadeOut("slow", + function() { + $("#applications_progress_bar").fadeIn("slow"); + } + ); + $.getJSON("{{ bulk_accept_link|safe }}", + function(data){ + setTimeout(function(){acceptOrg(data)}, 0); + } + ); +} + +function acceptOrg(accepted_applications) { + var application_index = 0, max_applications=accepted_applications.applications.length; + for (application_index; application_indexDone!"); + +} +