From 955c3d0c03656dc8aa44b4b227e95de879f32369 Mon Sep 17 00:00:00 2001 From: Safia Abdalla Date: Thu, 25 Feb 2016 01:59:29 -0600 Subject: [PATCH] Exempt javascript files from files check --- notebook/static/tree/js/notebooklist.js | 1 + 1 file changed, 1 insertion(+) diff --git a/notebook/static/tree/js/notebooklist.js b/notebook/static/tree/js/notebooklist.js index e003897db..3038d8476 100644 --- a/notebook/static/tree/js/notebooklist.js +++ b/notebook/static/tree/js/notebooklist.js @@ -647,6 +647,7 @@ define([ var uri_prefix = NotebookList.uri_prefixes[model.type]; if (model.type === 'file' && model.mimetype && model.mimetype.substr(0,5) !== 'text/' + && !model.mimetype.endsWith('javascript') ) { // send text/unidentified files to editor, others go to raw viewer uri_prefix = 'files';