Skip to content

Commit 44dfc90

Browse files
Fixed upload button for rules and events in IE and Edge (#85)
1 parent b85ef32 commit 44dfc90

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

src/main/resources/static/js/testrules.js

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,8 @@ jQuery(document).ready(
264264
validateRulesJsonAndCreateSubscriptions(file);
265265
}
266266

267-
// If MS Internet Explorer -> special handling for creating
268-
// download
269-
// file window.
270-
if (window.navigator.msSaveOrOpenBlob) {
271-
createUploadWindowMSExplorer();
272-
} else {
273-
// HTML5 Download File window handling
274-
createRulesUploadWindow();
275-
}
267+
// HTML5 Download File window handling
268+
createRulesUploadWindow();
276269
});
277270

278271
//Upload list of events json data
@@ -296,14 +289,9 @@ jQuery(document).ready(
296289
validateEventsJsonAndCreateSubscriptions(file);
297290
}
298291

299-
// If MS Internet Explorer -> special handling for creating download
300-
// file window.
301-
if (window.navigator.msSaveOrOpenBlob) {
302-
createUploadWindowMSExplorer();
303-
} else {
304-
// HTML5 Download File window handling
305-
createUploadWindow();
306-
}
292+
293+
// HTML5 Download File window handling
294+
createUploadWindow();
307295
});
308296

309297
// Download the modified rule

0 commit comments

Comments
 (0)