|
|
@@ -2722,7 +2722,7 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
|
|
|
|
|
|
self.control = function (action) {
|
|
|
if (action == 'rerun') {
|
|
|
- $.get('/oozie/rerun_oozie_job/' + self.id() + '/?format=json', function(response) {
|
|
|
+ $.get('/oozie/rerun_oozie_job/' + self.id() + '/?format=json' + '${ "&is_mini=true" if is_mini else "" | n }', function(response) {
|
|
|
$('#rerun-modal${ SUFFIX }').modal('show');
|
|
|
self.rerunModalContent(response);
|
|
|
});
|
|
|
@@ -3148,7 +3148,7 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
|
|
|
|
|
|
self.control = function (action) {
|
|
|
if (action === 'rerun') {
|
|
|
- $.get('/oozie/rerun_oozie_coord/' + vm.job().id() + '/?format=json', function(response) {
|
|
|
+ $.get('/oozie/rerun_oozie_coord/' + vm.job().id() + '/?format=json' + '${ "&is_mini=true" if is_mini else "" | n }', function(response) {
|
|
|
$('#rerun-modal${ SUFFIX }').modal('show');
|
|
|
vm.job().rerunModalContent(response);
|
|
|
|
|
|
@@ -3160,8 +3160,8 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
|
|
|
});
|
|
|
option.appendTo($(frag));
|
|
|
});
|
|
|
- $('#id_actions').find('option').remove();
|
|
|
- $(frag).appendTo('#id_actions');
|
|
|
+ $('#id_actions${ SUFFIX }').find('option').remove();
|
|
|
+ $(frag).appendTo('#id_actions${ SUFFIX }');
|
|
|
});
|
|
|
} else if (action === 'ignore') {
|
|
|
$.post('/oozie/manage_oozie_jobs/' + vm.job().id() + '/ignore', {
|
|
|
@@ -3544,13 +3544,13 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
|
|
|
|
|
|
huePubSub.publish('cluster.config.get.config');
|
|
|
|
|
|
- huePubSub.subscribe('submit.rerun.popup.return', function (data) {
|
|
|
+ huePubSub.subscribe('submit.rerun.popup.return${ SUFFIX }', function (data) {
|
|
|
$.jHueNotify.info('${_("Rerun submitted.")}');
|
|
|
$('#rerun-modal${ SUFFIX }').modal('hide');
|
|
|
|
|
|
jobBrowserViewModel.job().apiStatus('RUNNING');
|
|
|
jobBrowserViewModel.monitorJob(jobBrowserViewModel.job());
|
|
|
- }, 'jobbrowser');
|
|
|
+ }, '${ "jobbrowser" if not is_mini else "" }');
|
|
|
|
|
|
% if is_mini:
|
|
|
huePubSub.subscribe('mini.jb.navigate', function (options) {
|