Permalink
Browse files

Keeping up with Quora UI changes.

  • Loading branch information...
1 parent 7c34113 commit 2b79a403dadf342973319f98151c3fac5261b0c5 @bulatb committed Jun 4, 2012
Showing with 5 additions and 8 deletions.
  1. +4 −7 bookmarklet.js
  2. +1 −1 bookmarklet.min.js
View
@@ -46,7 +46,7 @@
},
inputField: {
background: '#f9f9f9',
- border: '1px solid #ccc',
+ border: '1px solid #bbb',
display: 'block',
padding: '2px'
},
@@ -84,7 +84,7 @@
'float': 'left',
margin: '-1px 10px 0 0',
'min-width': '0',
- padding: '2px 10px'
+ padding: '1px 8px'
},
cancelButton: {
'font-size': '0.97em',
@@ -314,15 +314,12 @@
* If you like benchmarks, you might want to see this:
*
* http://jsperf.com/mention-editor-html-templating
- *
- * Turns out the oft-touted .split().join() is relatively butt-slow. And
- * yeah, this could be twice as fast if I used %ns% everywhere.
*/
function tooltipHtml(namespace) {
return (
'<div class="hover_menu">' +
'<div id="arrowNub" class="hover_menu_nub"></div>' +
- '<div id="prompt" class="menu_contents growl_notification">' +
+ '<div id="prompt" class="hover_menu_contents">' +
'<input id="inputField" type="text" />' +
'<div id="controls">' +
'<a id="okButton" href="#" class="submit_button">Save</a>' +
@@ -421,7 +418,7 @@
/* Now let's get down to business (to defeat the DOM). */
- okButton = tooltip.find('.menu_contents').find('a').first();
+ okButton = tooltip.find('.hover_menu_contents').find('a').first();
cancelButton = okButton.next();
editorCancelButton = target.closest('.inline_editor_form').find('.inline_editor_cancel_button');
helpToggle = tooltip.find(id('helpToggle'));
View
Oops, something went wrong.

0 comments on commit 2b79a40

Please sign in to comment.