Skip to content

Commit

Permalink
Merge pull request #499 from nasa-gibs/orbit-title-hotfix
Browse files Browse the repository at this point in the history
Removed capitalizeFirstLetter function, replaced with lodash's startCase
  • Loading branch information
Benjaki2 authored Sep 8, 2017
2 parents f532078 + c2f9fbb commit 62c8c7e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion web/js/layers/wv.layers.modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) {
if (layer.layergroup && layer.layergroup.indexOf("reference_orbits") !== -1) {
var orbitTitle;
if (layer.daynight && layer.track) {
orbitTitle = wv.util.capitalizeFirstLetter(layer.daynight) + "/" + wv.util.capitalizeFirstLetter(layer.track);
orbitTitle = _.startCase(layer.track) + "/" + _.startCase(layer.daynight);
}

$label.empty()
Expand Down
5 changes: 0 additions & 5 deletions web/js/util/wv.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -799,11 +799,6 @@ wv.util = (function(self) {
return value;
};


self.capitalizeFirstLetter = function(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
};

return self;

})(wv.util || {});

0 comments on commit 62c8c7e

Please sign in to comment.