From 28517110c6cb41d95ba52b4ac2021e9a06baf8e2 Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 27 Apr 2018 10:58:28 -0700 Subject: [PATCH] Fix an issue in the new Harbormaster build log view where clicking the "^" icon doesn't work right Summary: Ref T13130. See PHI617. The new build log UI has tags like `Show More Above ^`. If you click the little "^" icon, the event target is the `` instead of the `` so we expand on the wrong node. Instead, select the `` by sigil explicitly. Test Plan: Viewed new log UI in Harbormaster, clicked "^" icon and text, got the same (correct) behavior on both. Reviewers: amckinley Reviewed By: amckinley Maniphest Tasks: T13130 Differential Revision: https://secure.phabricator.com/D19410 --- resources/celerity/map.php | 10 +++++----- .../harbormaster/behavior-harbormaster-log.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/celerity/map.php b/resources/celerity/map.php index dd4d978fed..480c4b602d 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -391,7 +391,7 @@ return array( 'rsrc/js/application/files/behavior-document-engine.js' => 'ee0deff8', 'rsrc/js/application/files/behavior-icon-composer.js' => '8499b6ab', 'rsrc/js/application/files/behavior-launch-icon-composer.js' => '48086888', - 'rsrc/js/application/harbormaster/behavior-harbormaster-log.js' => '191b4909', + 'rsrc/js/application/harbormaster/behavior-harbormaster-log.js' => '549459b8', 'rsrc/js/application/herald/HeraldRuleEditor.js' => 'dca75c0e', 'rsrc/js/application/herald/PathTypeahead.js' => '662e9cea', 'rsrc/js/application/herald/herald-rule-editor.js' => '7ebaeed3', @@ -609,7 +609,7 @@ return array( 'javelin-behavior-event-all-day' => 'b41537c9', 'javelin-behavior-fancy-datepicker' => 'ecf4e799', 'javelin-behavior-global-drag-and-drop' => '960f6a39', - 'javelin-behavior-harbormaster-log' => '191b4909', + 'javelin-behavior-harbormaster-log' => '549459b8', 'javelin-behavior-herald-rule-editor' => '7ebaeed3', 'javelin-behavior-high-security-warning' => 'a464fe03', 'javelin-behavior-history-install' => '7ee2b591', @@ -960,9 +960,6 @@ return array( '185bbd53' => array( 'javelin-install', ), - '191b4909' => array( - 'javelin-behavior', - ), '1ad0a787' => array( 'javelin-install', 'javelin-reactor', @@ -1257,6 +1254,9 @@ return array( 'javelin-vector', 'javelin-typeahead-static-source', ), + '549459b8' => array( + 'javelin-behavior', + ), '54b612ba' => array( 'javelin-color', 'javelin-install', diff --git a/webroot/rsrc/js/application/harbormaster/behavior-harbormaster-log.js b/webroot/rsrc/js/application/harbormaster/behavior-harbormaster-log.js index 5bff2c1bb0..db60c47055 100644 --- a/webroot/rsrc/js/application/harbormaster/behavior-harbormaster-log.js +++ b/webroot/rsrc/js/application/harbormaster/behavior-harbormaster-log.js @@ -16,7 +16,7 @@ JX.behavior('harbormaster-log', function(config) { e.kill(); - expand(e.getTarget(), true); + expand(e.getNode('harbormaster-log-expand'), true); }); function expand(node, is_action) {