BUG 6970 "Case Options" SOLVED
Now we can add more option on case menu setting up the menu "caseOptions"
This commit is contained in:
@@ -61,7 +61,7 @@ class Ajax
|
||||
$option = Array(
|
||||
'id' => $oMenu->Id[$i],
|
||||
'label' => $oMenu->Labels[$i],
|
||||
'action' => ($action!='STEPS' && $action!='ACTIONS' && $action!='INFO') ? $action : ''
|
||||
'action' => $action
|
||||
);
|
||||
|
||||
switch($option['id']) {
|
||||
|
||||
@@ -63,6 +63,8 @@
|
||||
$oHeadPublisher->assign('uri', $script . $uri);
|
||||
$oHeadPublisher->assign('_APP_NUM', $appNum);
|
||||
$oHeadPublisher->assign('_ENV_CURRENT_DATE', $conf->getSystemDate(date('Y-m-d')));
|
||||
$oHeadPublisher->assign('_ENV_CURRENT_DATE_NO_FORMAT', date('Y-m-d'));
|
||||
|
||||
G::RenderPage('publish', 'extJs');
|
||||
|
||||
|
||||
|
||||
@@ -99,6 +99,22 @@ Ext.onReady(function(){
|
||||
}
|
||||
actionMenu.show();
|
||||
break;
|
||||
|
||||
// custom menus from plugins or others
|
||||
default:
|
||||
var navPanel = Ext.getCmp('navPanel');
|
||||
var tb = navPanel.getTopToolbar();
|
||||
|
||||
var menu = new Ext.Action({
|
||||
id: data[i].id,
|
||||
text: data[i].label,
|
||||
handler: function(){
|
||||
eval(this._action);
|
||||
},
|
||||
_action: data[i].action.replace('javascript:', '').replace(';', '')
|
||||
});
|
||||
|
||||
tb.add(menu);
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -514,7 +530,7 @@ Ext.onReady(function(){
|
||||
|
||||
Actions.setUnpauseCaseDate = function()
|
||||
{
|
||||
curDate = _ENV_CURRENT_DATE.split('-');
|
||||
curDate = _ENV_CURRENT_DATE_NO_FORMAT.split('-');
|
||||
filterDate = curDate[0]+'-'+curDate[1]+'-';
|
||||
nDay = '' + (parseInt(curDate[2])+1);
|
||||
nDay = nDay.length == 1 ? '0' + nDay : nDay;
|
||||
|
||||
Reference in New Issue
Block a user