Skip to content
Snippets Groups Projects
Commit d5db604e authored by Satish's avatar Satish
Browse files

Mass delete of Orgnization with (????) is deleting all records in Orgnizations

parent 9b5c5338
No related branches found
No related tags found
No related merge requests found
......@@ -49,9 +49,10 @@ var AppConnector = {
if(typeof params.data == 'undefined') {
if(typeof params == 'string') {
var callerParams = params;
if(callerParams.indexOf('?')!== -1) {
var callerParamsParts = callerParams.split('?')
callerParams = callerParamsParts[1];
var index = callerParams.indexOf('?');
if (index !== -1) {
var subStr = callerParams.substr(0, index+1);//need to replace only "index.php?" or "?"
callerParams = callerParams.replace(subStr,'');
}
}else{
callerParams = jQuery.extend({}, params);
......@@ -61,6 +62,7 @@ var AppConnector = {
}
//Make the request as post by default
if(typeof params.type == 'undefined') params.type = 'POST';
if(typeof params.jsonp == 'undefined') params.jsonp = false;
//By default we expect json from the server
if(typeof params.dataType == 'undefined'){
......@@ -96,7 +98,6 @@ var AppConnector = {
params.url = 'index.php';
}
var success = function(data,status,jqXHR) {
aDeferred.resolve(data);
}
......@@ -104,7 +105,7 @@ var AppConnector = {
var error = function(jqXHR, textStatus, errorThrown){
aDeferred.reject(textStatus, errorThrown);
}
if(pjaxMode) {
if(typeof params.container == 'undefined') params.container = '#pjaxContainer';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment