Page MenuHomePhabricator

D13746.diff
No OneTemporary

D13746.diff

diff --git a/src/applications/pholio/view/PholioMockThumbGridView.php b/src/applications/pholio/view/PholioMockThumbGridView.php
--- a/src/applications/pholio/view/PholioMockThumbGridView.php
+++ b/src/applications/pholio/view/PholioMockThumbGridView.php
@@ -116,6 +116,7 @@
$preview_key = PhabricatorFileThumbnailTransform::TRANSFORM_THUMBGRID;
$xform = PhabricatorFileTransform::getTransformByKey($preview_key);
+ Javelin::initBehavior('phabricator-tooltips');
$attributes = array(
'class' => 'pholio-mock-thumb-grid-image',
@@ -161,11 +162,13 @@
return javelin_tag(
'a',
array(
- 'sigil' => 'mock-thumbnail',
+ 'sigil' => 'mock-thumbnail has-tooltip',
'class' => implode(' ', $classes),
'href' => '#',
'meta' => array(
'imageID' => $image->getID(),
+ 'tip' => $image->getName(),
+ 'align' => 'N',
),
),
array(

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 16, 8:03 PM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6718973
Default Alt Text
D13746.diff (955 B)

Event Timeline