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