From 8526ff7dbd8ab16f0c9d25888d9a5704af8cb674 Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Fri, 9 Oct 2015 07:49:30 -0700 Subject: [PATCH 1/3] Fix tooltip and move replace in selected cells button. --- .../static/notebook/js/searchandreplace.js | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/notebook/static/notebook/js/searchandreplace.js b/notebook/static/notebook/js/searchandreplace.js index 8af53b2baf..7cc95e3923 100644 --- a/notebook/static/notebook/js/searchandreplace.js +++ b/notebook/static/notebook/js/searchandreplace.js @@ -69,7 +69,6 @@ define(function(require){ body.append($('

').addClass('bg-warning').text("Warning, too many matches ("+html.length+"+), some changes might not be shown or applied")); } else { body.append($('

').addClass('bg-info').text(html.length+" match"+(html.length==1?'':'es'))); - } for(var rindex=0; rindex') @@ -135,7 +134,7 @@ define(function(require){ res.push([match.index, match.index+match[0].length]); escape_hatch++; if(escape_hatch > 100){ - console.warn("More than 100 matches, aborting"); + console.warn("More than 100 matches, aborting"); abort = true; break; } @@ -156,7 +155,7 @@ define(function(require){ .attr('id', 'isreg') .addClass("btn btn-default") .attr('data-toggle','button') - .attr('title', 'use regular expression (now you have N+1 problems)') + .attr('title', 'Use regex (JavaScript regex syntax)') .text('.*'); var onlySelectedButton = $('