diff --git a/resources/celerity/map.php b/resources/celerity/map.php index 09100f9933..ab2565ab77 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -399,7 +399,7 @@ return array( 'rsrc/js/application/passphrase/phame-credential-control.js' => '1e1c8a59', 'rsrc/js/application/phame/phame-post-preview.js' => '61d927ec', 'rsrc/js/application/pholio/behavior-pholio-mock-edit.js' => '1e1e8bb0', - 'rsrc/js/application/pholio/behavior-pholio-mock-view.js' => '7afc17c9', + 'rsrc/js/application/pholio/behavior-pholio-mock-view.js' => '83326068', 'rsrc/js/application/phortune/behavior-balanced-payment-form.js' => '3b3e1664', 'rsrc/js/application/phortune/behavior-stripe-payment-form.js' => '1693a296', 'rsrc/js/application/phortune/behavior-test-payment-form.js' => 'b3e5ee60', @@ -624,7 +624,7 @@ return array( 'javelin-behavior-phabricator-watch-anchor' => '06e05112', 'javelin-behavior-phame-post-preview' => '61d927ec', 'javelin-behavior-pholio-mock-edit' => '1e1e8bb0', - 'javelin-behavior-pholio-mock-view' => '7afc17c9', + 'javelin-behavior-pholio-mock-view' => '83326068', 'javelin-behavior-phui-object-box-tabs' => 'a3e2244e', 'javelin-behavior-phui-timeline-dropdown-menu' => '4d94d9c3', 'javelin-behavior-policy-control' => 'f3fef818', @@ -1372,21 +1372,6 @@ return array( 0 => 'owners-path-editor', 1 => 'javelin-behavior', ), - '7afc17c9' => - array( - 0 => 'javelin-behavior', - 1 => 'javelin-util', - 2 => 'javelin-stratcom', - 3 => 'javelin-dom', - 4 => 'javelin-vector', - 5 => 'javelin-magical-init', - 6 => 'javelin-request', - 7 => 'javelin-history', - 8 => 'javelin-workflow', - 9 => 'javelin-mask', - 10 => 'javelin-behavior-device', - 11 => 'phabricator-keyboard-shortcut', - ), '7ba325ee' => array( 0 => 'javelin-install', @@ -2127,6 +2112,21 @@ return array( 1 => 'javelin-dom', 2 => 'javelin-workflow', ), + 83326068 => + array( + 0 => 'javelin-behavior', + 1 => 'javelin-util', + 2 => 'javelin-stratcom', + 3 => 'javelin-dom', + 4 => 'javelin-vector', + 5 => 'javelin-magical-init', + 6 => 'javelin-request', + 7 => 'javelin-history', + 8 => 'javelin-workflow', + 9 => 'javelin-mask', + 10 => 'javelin-behavior-device', + 11 => 'phabricator-keyboard-shortcut', + ), ), 'packages' => array( diff --git a/webroot/rsrc/js/application/pholio/behavior-pholio-mock-view.js b/webroot/rsrc/js/application/pholio/behavior-pholio-mock-view.js index 9a1c382296..64932d4897 100644 --- a/webroot/rsrc/js/application/pholio/behavior-pholio-mock-view.js +++ b/webroot/rsrc/js/application/pholio/behavior-pholio-mock-view.js @@ -656,12 +656,15 @@ JX.behavior('pholio-mock-view', function(config) { } info = JX.$N('div', {className: 'pholio-image-info'}, info); - var desc = JX.$N( - 'div', - {className: 'pholio-image-description'}, - JX.$H(image.descriptionMarkup)); - - return [buttons, info, desc]; + if (image.descriptionMarkup === '') { + return [buttons, info]; + } else { + var desc = JX.$N( + 'div', + {className: 'pholio-image-description'}, + JX.$H(image.descriptionMarkup)); + return [buttons, info, desc]; + } } function render_reticle(classes) {