Skip to content

Commit

Permalink
[#2494] Hide dates when JavaScript is active to prevent flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Oderbolz committed Jul 9, 2015
1 parent 514444f commit a164ac7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/public/base/css/main.css
Expand Up @@ -5560,6 +5560,9 @@ a.tag:hover {
.js .tab-content.active {
display: block;
}
.js .datetime {
display: none;
}
.box {
background-color: #FFF;
border: 1px solid #cccccc;
Expand Down
1 change: 1 addition & 0 deletions ckan/public/base/javascript/main.js
Expand Up @@ -36,6 +36,7 @@ this.ckan = this.ckan || {};
moment.locale(browserLocale);
var date = moment(jQuery(this).data().datetime);
jQuery(this).html(date.format("LL, LT ([UTC]Z)"));
jQuery(this).show();
})

// Load the localisations before instantiating the modules.
Expand Down

0 comments on commit a164ac7

Please sign in to comment.