app/soc/content/js/org-accept.js
changeset 1506 b908d671624e
parent 1367 9899e92121b7
equal deleted inserted replaced
1505:fd6dcb852688 1506:b908d671624e
     2 	$("#applications_progress_bar").progressBar({showText: false});
     2 	$("#applications_progress_bar").progressBar({showText: false});
     3 });
     3 });
     4 
     4 
     5 function acceptOrgInit(bulk_accept_link) {
     5 function acceptOrgInit(bulk_accept_link) {
     6 	// get the JSON object with details of every application for bulk acceptance
     6 	// get the JSON object with details of every application for bulk acceptance
     7 	$.getJSON(bulk_accept_link,
     7 	$.getJSON(bulk_accept_link+"?_="+(new Date().getTime()),
     8 		function(data){
     8 		function(data){
     9 			// If there are applications to accept...
     9 			// If there are applications to accept...
    10 			if (data.nr_applications != 0) {
    10 			if (data.nr_applications != 0) {
    11 				//...then fade out the button, show the progress bar and call the function for acceptance
    11 				//...then fade out the button, show the progress bar and call the function for acceptance
    12 				$("#button_accept").fadeOut("slow",
    12 				$("#button_accept").fadeOut("slow",