##// END OF EJS Templates
Merge pull request #7138 from quantopian/js-lint-errors...
Thomas Kluyver -
r19368:429bbe5c merge
parent child Browse files
Show More
@@ -62,7 +62,7 b' class ContentsHandler(IPythonHandler):'
62 if type_ not in {None, 'directory', 'file', 'notebook'}:
62 if type_ not in {None, 'directory', 'file', 'notebook'}:
63 raise web.HTTPError(400, u'Type %r is invalid' % type_)
63 raise web.HTTPError(400, u'Type %r is invalid' % type_)
64
64
65 format = self.get_query_argument('format', default=None)#
65 format = self.get_query_argument('format', default=None)
66 if format not in {None, 'text', 'base64'}:
66 if format not in {None, 'text', 'base64'}:
67 raise web.HTTPError(400, u'Format %r is invalid' % format)
67 raise web.HTTPError(400, u'Format %r is invalid' % format)
68
68
@@ -6,6 +6,7 b' define(['
6 'base/js/utils',
6 'base/js/utils',
7 ],
7 ],
8 function($, utils) {
8 function($, utils) {
9 "use strict";
9 var ConfigSection = function(section_name, options) {
10 var ConfigSection = function(section_name, options) {
10 this.section_name = section_name;
11 this.section_name = section_name;
11 this.base_url = options.base_url;
12 this.base_url = options.base_url;
@@ -6,6 +6,7 b' define(['
6 'jquery',
6 'jquery',
7 'base/js/utils',
7 'base/js/utils',
8 ], function(IPython, $, utils) {
8 ], function(IPython, $, utils) {
9 "use strict";
9 var Contents = function(options) {
10 var Contents = function(options) {
10 /**
11 /**
11 * Constructor
12 * Constructor
@@ -90,7 +91,7 b' define(['
90 dataType : "json",
91 dataType : "json",
91 };
92 };
92 var url = this.api_url(path);
93 var url = this.api_url(path);
93 params = {};
94 var params = {};
94 if (options.type) { params.type = options.type; }
95 if (options.type) { params.type = options.type; }
95 if (options.format) { params.format = options.format; }
96 if (options.format) { params.format = options.format; }
96 return utils.promising_ajax(url + '?' + $.param(params), settings);
97 return utils.promising_ajax(url + '?' + $.param(params), settings);
General Comments 0
You need to be logged in to leave comments. Login now