Adding a simple validation in templates/cases/cases.js to hide the unpuse buttons if we are in the gmail interface.

And deleting the call to methods that make the pause cases send message.
This commit is contained in:
jennydmz
2015-12-22 08:42:41 -04:00
parent 65910c3a08
commit 6ad029273f
2 changed files with 8 additions and 24 deletions

View File

@@ -157,6 +157,14 @@ Ext.onReady(function(){
tb.add(menu);
}
}
var olink = document.location.href;
if(olink.search("gmail") != -1){
Ext.getCmp('stepsMenu').hide();
Ext.getCmp('informationMenu').hide();
Ext.getCmp('actionMenu').hide();
Ext.getCmp('caseNotes').hide();
}
if (Ext.getCmp('stepsMenu').disabled === true) {
Ext.getCmp('stepsMenu').hide();