Skip to content

Commit

Permalink
Map Journal V1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory L'Azou committed Mar 16, 2016
1 parent 57de453 commit 1f4a4f7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The Story Map Journal is ideal when you want to combine narrative text with maps
[Map Journal page on Esri Story Maps website](http://storymaps.arcgis.com/en/app-list/map-journal/) |
[Download](http://links.esri.com/storymaps/map_journal_template_zip)

**Latest release is version 1.7.0**, if you want to be informed of new releases, we recommend you to watch this repository ([see GitHub help](https://help.github.com/articles/watching-repositories)). See the [release page](https://github.com/Esri/map-journal-storytelling-template-js/releases) for release notes.
**Latest release is version 1.7.1**, if you want to be informed of new releases, we recommend you to watch this repository ([see GitHub help](https://help.github.com/articles/watching-repositories)). See the [release page](https://github.com/Esri/map-journal-storytelling-template-js/releases) for release notes.

## Help content

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Storymaps-MapJournal",
"version": "1.7.0",
"version": "1.7.1",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-clean": "~0.4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/app/storymaps/tpl/core/WebApplicationData.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ define(["dojo/_base/lang"],
if ( this.getStorySections().length > 0 )
this.setTitle($("<div>" + this.getStorySections()[0].title + "</div>").text());

return _data.values.title || "";
return _data.values.title ? _data.values.title.trim() : "";
},
setTitle: function(title)
{
Expand Down
4 changes: 3 additions & 1 deletion src/app/storymaps/tpl/ui/StoryText.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ define(["dojo/topic",

if ( action.type == "media" ) {
var actionIsWebmap = action.media.type == "webmap",
actionChangeWebmap = currentWebmapId && actionIsWebmap && currentWebmapId != action.media.webmap.id,
actionChangeExtent = !! (actionIsWebmap && action.media.webmap.extent),
actionChangeLayers = !! (actionIsWebmap && action.media.webmap.layers),
actionChangePopup = !! (actionIsWebmap && action.media.webmap.popup);
Expand Down Expand Up @@ -269,7 +270,8 @@ define(["dojo/topic",
}
}

if ( isRealExtentChange || actionChangeLayers )
if ( actionChangeWebmap || ! actionIsWebmap || ! currentMediaIsWebmap
|| isRealExtentChange || actionChangeLayers )
$('.mediaBackContainer')
.show()
.css("marginLeft", - $(".mediaBackContainer .backButton").outerWidth() / 2)
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

<script type="text/javascript">
var app = {
version: '1.7.0',
version: '1.7.1',
pathJSAPI: '//js.arcgis.com/3.16/'
};
</script>
Expand Down

0 comments on commit 1f4a4f7

Please sign in to comment.