|
@@ -364,10 +364,12 @@ except ImportError, e:
|
|
|
function(resp) {
|
|
function(resp) {
|
|
|
if (resp.status == 0) {
|
|
if (resp.status == 0) {
|
|
|
if (IS_HUE_4) {
|
|
if (IS_HUE_4) {
|
|
|
- if (self.saveTarget() == '') {
|
|
|
|
|
|
|
+ $(".modal-backdrop").remove();
|
|
|
|
|
+ if (self.saveTarget() == 'hdfs-file') {
|
|
|
huePubSub.publish('page.route', resp.watch_url);
|
|
huePubSub.publish('page.route', resp.watch_url);
|
|
|
} else {
|
|
} else {
|
|
|
if (resp.history_uuid) {
|
|
if (resp.history_uuid) {
|
|
|
|
|
+ $("#saveResultsModal").hide();
|
|
|
huePubSub.publish('notebook.task.submitted', resp.history_uuid);
|
|
huePubSub.publish('notebook.task.submitted', resp.history_uuid);
|
|
|
} else if (resp && resp.message) {
|
|
} else if (resp && resp.message) {
|
|
|
$(document).trigger("error", resp.message);
|
|
$(document).trigger("error", resp.message);
|