Skip to content

Commit

Permalink
Fix empty filename during export
Browse files Browse the repository at this point in the history
Signed-off-by: Umair Khan <[email protected]>
  • Loading branch information
omerjerk committed Feb 24, 2014
1 parent 7baa79c commit 2ca5735
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions js/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ function toggle_save_to_file()
$("#ul_save_asfile > li> select").prop('disabled', true);
} else {
$("#ul_save_asfile > li").fadeTo('fast', 1);
$("#ul_save_asfile > li > input").removeProp('disabled');
$("#ul_save_asfile > li> select").removeProp('disabled');
$("#ul_save_asfile > li > input").prop('disabled', false);
$("#ul_save_asfile > li> select").prop('disabled', false);
}
}

Expand Down Expand Up @@ -185,7 +185,10 @@ AJAX.registerOnload('export.js', function () {
var active_plugin = $("#plugins option:selected").val();
var force_file = $("#force_file_" + active_plugin).val();
if (force_file == "true") {
$("#radio_dump_asfile").prop('checked', true);
if ($("#radio_dump_asfile").prop('checked') !== true) {
$("#radio_dump_asfile").prop('checked', true);
toggle_save_to_file();
}
$("#radio_view_as_text").prop('disabled', true).parent().fadeTo('fast', 0.4);
} else {
$("#radio_view_as_text").prop('disabled', false).parent().fadeTo('fast', 1);
Expand Down

0 comments on commit 2ca5735

Please sign in to comment.