Skip to content

Commit

Permalink
debug picture browsing
Browse files Browse the repository at this point in the history
  • Loading branch information
gelnior committed May 22, 2012
1 parent 12d2546 commit b0d362c
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 38 deletions.
3 changes: 2 additions & 1 deletion static/notes/src/views/notesview.coffee
Expand Up @@ -154,7 +154,7 @@ class NotesView extends Backbone.View
@notePreviewer.html(null)
content = convertUrlsToMarkdownLink row.getContent()
html = @converter.makeHtml content
@notePreviewer.html(html)
@notePreviewer.html html
row.updatePreviewPosition()


Expand Down Expand Up @@ -185,3 +185,4 @@ class NotesView extends Backbone.View
@newButton.button()

$("#notes-a").addClass("disabled")

142 changes: 107 additions & 35 deletions static/pictures/app/pictures.dev.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion static/pictures/src/routers/picture.coffee
Expand Up @@ -21,7 +21,8 @@ class PicturesRouter extends Backbone.Router
@view = view

all: (date) ->
@view.displayAllPictures date
if date
@view.displayAllPictures date

mine: (date) ->
@view.displayMyPictures date
Expand Down
2 changes: 1 addition & 1 deletion static/pictures/src/views/pictureview.coffee
Expand Up @@ -115,7 +115,7 @@ class PicturesView extends Backbone.View
if @morePictures.length >= 0 and @morePictures.length < 10
@moreButton.hide()
else
picture = pictures[0]
picture = @morePictures.last()
@lastDate = picture.getUrlDate()
@moreButton.show()

Expand Down

0 comments on commit b0d362c

Please sign in to comment.