Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

Commit

Permalink
Keeping up with Quora UI changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bulatb committed Jun 4, 2012
1 parent 7c34113 commit 2b79a40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions bookmarklet.js
Expand Up @@ -46,7 +46,7 @@
}, },
inputField: { inputField: {
background: '#f9f9f9', background: '#f9f9f9',
border: '1px solid #ccc', border: '1px solid #bbb',
display: 'block', display: 'block',
padding: '2px' padding: '2px'
}, },
Expand Down Expand Up @@ -84,7 +84,7 @@
'float': 'left', 'float': 'left',
margin: '-1px 10px 0 0', margin: '-1px 10px 0 0',
'min-width': '0', 'min-width': '0',
padding: '2px 10px' padding: '1px 8px'
}, },
cancelButton: { cancelButton: {
'font-size': '0.97em', 'font-size': '0.97em',
Expand Down Expand Up @@ -314,15 +314,12 @@
* If you like benchmarks, you might want to see this: * If you like benchmarks, you might want to see this:
* *
* http://jsperf.com/mention-editor-html-templating * 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) { function tooltipHtml(namespace) {
return ( return (
'<div class="hover_menu">' + '<div class="hover_menu">' +
'<div id="arrowNub" class="hover_menu_nub"></div>' + '<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" />' + '<input id="inputField" type="text" />' +
'<div id="controls">' + '<div id="controls">' +
'<a id="okButton" href="#" class="submit_button">Save</a>' + '<a id="okButton" href="#" class="submit_button">Save</a>' +
Expand Down Expand Up @@ -421,7 +418,7 @@


/* Now let's get down to business (to defeat the DOM). */ /* 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(); cancelButton = okButton.next();
editorCancelButton = target.closest('.inline_editor_form').find('.inline_editor_cancel_button'); editorCancelButton = target.closest('.inline_editor_form').find('.inline_editor_cancel_button');
helpToggle = tooltip.find(id('helpToggle')); helpToggle = tooltip.find(id('helpToggle'));
Expand Down
2 changes: 1 addition & 1 deletion bookmarklet.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2b79a40

Please sign in to comment.