##// END OF EJS Templates
Removing call to $.browser which went away in jQuery 1.9....
Brian E. Granger -
Show More
@@ -202,7 +202,6 b' var IPython = (function (IPython) {'
202 for (var k in CellToolbar._presets) {
202 for (var k in CellToolbar._presets) {
203 keys.push(k);
203 keys.push(k);
204 }
204 }
205 console.log(keys);
206 return keys;
205 return keys;
207 };
206 };
208
207
@@ -149,6 +149,6 b''
149 example_preset.push('example.help')
149 example_preset.push('example.help')
150
150
151 CellToolbar.register_preset('Example',example_preset);
151 CellToolbar.register_preset('Example',example_preset);
152 console.log('Example extension for metadata editting loaded.');
152 console.log('Example extension for metadata editing loaded.');
153
153
154 }(IPython));
154 }(IPython));
@@ -79,7 +79,7 b' var IPython = (function (IPython) {'
79
79
80 this.element.resize(function () {
80 this.element.resize(function () {
81 // FIXME: Firefox on Linux misbehaves, so automatic scrolling is disabled
81 // FIXME: Firefox on Linux misbehaves, so automatic scrolling is disabled
82 if ( $.browser.mozilla ) {
82 if ( IPython.utils.browser[0] === "Firefox" ) {
83 return;
83 return;
84 }
84 }
85 // maybe scroll output,
85 // maybe scroll output,
@@ -272,6 +272,15 b' IPython.utils = (function (IPython) {'
272 return Math.floor(points*pixel_per_point);
272 return Math.floor(points*pixel_per_point);
273 };
273 };
274
274
275 // http://stackoverflow.com/questions/2400935/browser-detection-in-javascript
276 browser = (function() {
277 var N= navigator.appName, ua= navigator.userAgent, tem;
278 var M= ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);
279 if (M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1];
280 M= M? [M[1], M[2]]: [N, navigator.appVersion,'-?'];
281 return M;
282 })();
283
275
284
276 return {
285 return {
277 regex_split : regex_split,
286 regex_split : regex_split,
@@ -282,7 +291,9 b' IPython.utils = (function (IPython) {'
282 fixCarriageReturn : fixCarriageReturn,
291 fixCarriageReturn : fixCarriageReturn,
283 wrapUrls : wrapUrls,
292 wrapUrls : wrapUrls,
284 autoLinkUrls : autoLinkUrls,
293 autoLinkUrls : autoLinkUrls,
285 points_to_pixels : points_to_pixels
294 points_to_pixels : points_to_pixels,
295 browser : browser
286 };
296 };
287
297
288 }(IPython));
298 }(IPython));
299
General Comments 0
You need to be logged in to leave comments. Login now