|
@@ -162,16 +162,15 @@ function ui_save_file() {
|
162
|
162
|
|
163
|
163
|
var a = $("#file-save-link")[0];
|
164
|
164
|
a.href = url;
|
165
|
|
- a.download = prompt("Filename: (blank for default)", ui_save_file.filename)
|
166
|
|
- if(!a.download || a.download == 'null') {
|
167
|
|
- return
|
|
165
|
+ a.download = prompt("Filename:", ui_save_file.filename);
|
|
166
|
+ if (a.download) {
|
|
167
|
+ ui_save_file.filename = a.download;
|
|
168
|
+ a.click();
|
168
|
169
|
}
|
169
|
|
- ui_save_file.filename = a.download
|
170
|
|
- a.click();
|
171
|
170
|
|
172
|
171
|
setTimeout(function () { URL.revokeObjectURL(url); }, 500);
|
173
|
172
|
}
|
174
|
|
-ui_save_file.filename = 'rpg_cards.json'
|
|
173
|
+ui_save_file.filename = 'rpg_cards.json';
|
175
|
174
|
|
176
|
175
|
function ui_update_selected_card() {
|
177
|
176
|
var card = ui_selected_card();
|