mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01:00
No description
fe042def42
Summary: Ref T3725. This might eventually allow us to do `@username` typeaheads in textareas. Javascript!!! Test Plan: Dumped this into console and got a "<<<" at the caret position in Safari, Firefox and Chrome. ``` setInterval(function() { var area = JX.$('comment-content'); var r = JX.TextAreaUtils.getSelectionRange(area); var d = JX.TextAreaUtils.getPixelDimensions(area, r.start, r.end); JX.log(d); try { JX.DOM.remove(JX.$('ptr')); } catch (_) {} document.body.appendChild( JX.$N( 'div', {id: "ptr", style: { position: 'absolute', left: d.start.x + 'px', top: d.start.y + 'px', zIndex: 9999, border: '2px solid red' }}, '<<<')); }, 1000); ``` Reviewers: chad, btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T3725 Differential Revision: https://secure.phabricator.com/D10280 |
||
---|---|---|
bin | ||
conf | ||
externals | ||
resources | ||
scripts | ||
src | ||
support | ||
webroot | ||
.arcconfig | ||
.arclint | ||
.editorconfig | ||
.gitignore | ||
LICENSE | ||
NOTICE | ||
README |
Phabricator is an open source collection of web applications which help software companies build better software. Phabricator includes applications for: - reviewing and auditing source code; - hosting and browsing repositories; - assembling a party to venture forth; - tracking bugs; - hiding stuff from coworkers; and - also some other things. You can learn more about the project (and find links to documentation and resources) [[http://phabricator.org/ | here]]. Phabricator is developed and maintained by [[http://phacility.com/ | Phacility]]. The first version of Phabricator was originally built at Facebook. = LICENSE = Phabricator is released under the Apache 2.0 license except as otherwise noted.