UI and build process tweaks.

* Reworked the buid process to compile SCSS files and move WWW assets
  directories individually.
* Added pulsing animation for the current marker.
* Bugfix for View objects.
This commit is contained in:
Jonathan Bernard
2013-10-24 20:42:53 +00:00
parent c42a3805c2
commit e8bebb49fb
4 changed files with 43 additions and 378 deletions

View File

@ -296,7 +296,7 @@ $(document).ready(function(){
TS.EntryListView = Backbone.View.extend({
el: $("#entry-list"),
el: $("#entry-list")[0],
events: { "keypress #new-entry-input" : "createNewEntryOnEnter" },
@ -312,7 +312,9 @@ $(document).ready(function(){
var lastEntry = this.collection.at(this.collection.length - 2);
lastEntry.view.nextModel = entry;
lastEntry.view.update();
this.renderOne(entry, null); },
this.renderOne(entry, null);
$(".entry.current").removeClass("current");
$(entry.view.el).addClass("current"); },
renderOne: function(entry, nextEntry) {
// exclude if any exclusion RegExps match
@ -428,7 +430,7 @@ $(document).ready(function(){
else if (dayDiff == 0) { return "Today"; } } });
TS.TimelineListView = Backbone.View.extend({
el: $("#timeline"),
el: $("#timeline")[0],
collection: TS.TimelineList,
@ -487,7 +489,7 @@ $(document).ready(function(){
TS.UserView = Backbone.View.extend({
el: $("#user"),
el: $("#user")[0],
model: TS.UserModel,
@ -518,7 +520,7 @@ $(document).ready(function(){
TS.AppView = Backbone.View.extend({
el: $("body"),
el: $("body")[0],
events: { 'click #timeline .drop-menu-items a': 'selectTimeline' },
@ -635,7 +637,7 @@ $(document).ready(function(){
this.entries.collection.fetch() } } });
TS.LoginView = Backbone.View.extend({
el: $("#login"),
el: $("#login")[0],
events: {
"keypress #password-input" : "loginOnEnter",
@ -685,7 +687,7 @@ $(document).ready(function(){
if (e.keyCode == 13) { this.doLogin(); } } });
TS.NewTimelineView = Backbone.View.extend({
el: $("#new-timeline"),
el: $("#new-timeline")[0],
events: {
"click #new-timeline-create a" : "createTimeline",