Commit 7d6aef40 authored by Rachana's avatar Rachana

blockui for ajax processing screen

parent a2f61f81
......@@ -177,6 +177,8 @@
$(document).foundation();
// Register global ajax start and complete events to show ajax loader when request is in process
$(document).ajaxStart($.blockUI).ajaxStop($.unblockUI);
/*
$(document)
.ajaxStart(function() {
$('article').block({
......@@ -203,6 +205,7 @@
.ajaxStop(function() {
$('article').unblock();
});
*/
// Toggles the display of main sidebar for 12 col article view
var toggleMainSidebar = function(){
......
......@@ -96,7 +96,7 @@
break;
}
}
collapse_tree(node);
// collapse_tree(node);
var nav_list = parent_arr.reverse();
if(node['node_type']!="CourseSectionEvent" && node['node_type']!="CourseSubSectionEvent" && node['node_type']!="CourseUnitEvent" && node['node_type']!="CourseSection" && node['node_type']!="CourseSubSection" && node['node_type']!="CourseUnit" && update_url){
// alert(nav_list);
......@@ -112,14 +112,16 @@
nod_type: node_type
// csrfmiddlewaretoken: '{{ csrf_token }}'
},
/*
beforeSend: function ( ) {
$("#processing_screen_ModalLabel").text("Please wait");
$("#processing_screen_Modal").foundation('reveal', 'open');
},
},*/
success: function(data) {
/*
$("#processing_screen_Modal").removeClass("alert");
$("#processing_screen_Modal").foundation('reveal', 'close');
*/
if (node_type == "Group"){
window.history.pushState("", "", "/{{group_name_tag}}/"+"?selected="+node.id+"");
}
......@@ -176,7 +178,7 @@
}
else{
var close_nele = event.previous_node
unselect_treenode(close_nele)
// unselect_treenode(close_nele)
}
});
......
......@@ -79,10 +79,11 @@
</a>
</div>
{% endif %}
<div id="view_collection">
{% include "ndf/collection_ajax_view.html" %}
</div>
{% if node.collection_set %}
<div id="view_collection">
{% include "ndf/collection_ajax_view.html" %}
</div>
{% endif %}
{% if not 'video' in node.if_file.mime_type and not is_group %}
<dl class="accordion" data-accordion>
<dd class="accordion-navigation" data-options="deep_linking:true">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment