Commit 7ac684ff authored by Rachana's avatar Rachana

Remove unblock stmts from ajax calls

parent 3cefbb83
......@@ -366,7 +366,6 @@ $(document).on('click',".adminRenderConceptGraph",function(){
global:false,
async: true,
success: function(result) {
$('article').unblock();
$("#view-concept-graph").html(result);
},
});
......@@ -384,7 +383,6 @@ $(document).on('click',".adminRenderCollectionGraph",function(){
graph_type : "collection"
},
success: function(result) {
$('article').unblock();
$("#view-collection-graph").html(result);
},
});
......@@ -403,7 +401,6 @@ $(document).on('click',".adminRenderDependencyGraph",function(){
graph_type : "dependency"
},
success: function(result) {
$('article').unblock();
$("#view-Dependency-graph").html(result);
},
});
......
......@@ -148,7 +148,6 @@
$("#view_page").html(data);
}
});
$('article').unblock()
}
else if(node['node_type']=="CourseUnitEvent"){
$(".view_page_link").trigger('click')
......
......@@ -179,6 +179,9 @@
$(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({
......@@ -202,7 +205,7 @@
.ajaxStop(function() {
$('article').unblock();
});
*/
// Toggles the display of main sidebar for 12 col article view
var toggleMainSidebar = function(){
$("main>aside").toggle();
......
......@@ -171,7 +171,6 @@
$("#view_page").html(data);
}
});
$('article').unblock()
}
else if(node['node_type']=="CourseUnitEvent"){
$(".view_page_link").trigger('click')
......
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