Skip to content
Snippets Groups Projects

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

Merged #315 - Mass delete of Orgnization with (????) is deleting all records in Orgnizations
Merged Satish requested to merge satish.dvnk/vtigercrm:massDelete into master
+ 6
5
Compare changes
  • Side-by-side
  • Inline
+ 6
5
@@ -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';
Loading