Bugfix, started working on mobile UI.

* Strted making the page responsive (size-based media queries, mobile meta
  tags, and reworked the UI for small sizes).
* Fixed bugs in the periodicRefresh function.
* Changed the yaw.prod.conf file to match the actual PROD coniguration.
This commit is contained in:
Jonathan Bernard
2014-03-30 03:37:59 +00:00
parent 54eb4fdafa
commit dc70b00403
6 changed files with 271 additions and 377 deletions

View File

@ -608,25 +608,29 @@ $(document).ready(function(){
var now = new Date();
var models = this.entries.collection.models;
// First we check if it is a new day. If it is, we need to
// re-render the chole list.
if (this.currentDay.getDate() != now.getDate()) {
// If the user is editing any one of the models, don't rerender
if (_.any(models, function(model) {
return ($(model.view.el).hasClass('edit-mark'); ||
$(model.view.el).hasClass('edit-timestamp'); ||
$(model.view.el).hasClass('edit-notes');) })) {
return ($(model.view.el).hasClass('edit-mark') ||
$(model.view.el).hasClass('edit-timestamp') ||
$(model.view.el).hasClass('edit-notes')) })) {
return }
// It's a new day! Rerender our whole list.
else { this.entries.render(); } }
// Otherwise we only need to re-render the most recent item.
else {
var currentModel = models[models.length - 1]
if ($(model.view.el).hasClass('edit-mark'); ||
$(model.view.el).hasClass('edit-timestamp'); ||
$(model.view.el).hasClass('edit-notes');) { return }
if ($(currentModel.view.el).hasClass('edit-mark') ||
$(currentModel.view.el).hasClass('edit-timestamp') ||
$(currentModel.view.el).hasClass('edit-notes')) { return }
// Refresh our latest entry view so the duration is up to date.
else { currentModelview.render(); } } },
else { currentModel.view.render(); } } },
selectTimeline: function(e) {
if (e) {