Skip to content

Commit ca17bd3

Browse files
committed
UI Tweak: Allow ics / ical files as uploads into code editor.
1 parent c51168b commit ca17bd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

htdocs/js/pages/Base.class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3387,7 +3387,7 @@ Page.Base = class Base extends Page {
33873387
var self = this;
33883388
var $file = $('#fe_code_import');
33893389
if ($file.length) $file.remove();
3390-
$file = $('<input type="file" id="fe_code_import" accept=".txt,.html,.css,.js,.json,.ts,.jsx,.tsx,.py,.sh,.c,.cpp,.h,.hpp,.md,.yaml,.yml,.xml,.csv,.ini,.log,.conf,.php,.rb,.pl" style="display:none">').appendTo('body');
3390+
$file = $('<input type="file" id="fe_code_import" accept=".txt,.html,.css,.js,.json,.ts,.jsx,.tsx,.py,.sh,.c,.cpp,.h,.hpp,.md,.yaml,.yml,.xml,.csv,.ini,.log,.conf,.php,.rb,.pl,.ics,.ical" style="display:none">').appendTo('body');
33913391

33923392
$file.on('change', function() {
33933393
if (this.files && this.files.length && CodeEditor.onDragDrop) CodeEditor.onDragDrop( this.files );

0 commit comments

Comments
 (0)