Skip to content
Browse files

Don't try to restore verticle scroll position yet

  • Loading branch information...
1 parent 0c60c94 commit cdc2874c90b1ee13920b5471eabab1134b725a9e Devin Torres committed
Showing with 13 additions and 13 deletions.
  1. +11 −11 apps/fotofoo/responders/library.js
  2. +2 −2 server/fotofoo.js
View
22 apps/fotofoo/responders/library.js
@@ -11,20 +11,20 @@ Fotofoo.LIBRARY = SC.Responder.create({
didBecomeFirstResponder: function() {
Fotofoo.set('nowShowing', 'library');
- var responder = this;
- this.invokeLast(function(){
- var verticalScrollOffset = responder.get('_verticalScrollOffset');
- if (verticalScrollOffset) {
- Fotofoo.libraryView.set('verticalScrollOffset', verticalScrollOffset);
- }
- });
+ // var responder = this;
+ // this.invokeLast(function(){
+ // var verticalScrollOffset = responder.get('_verticalScrollOffset');
+ // if (verticalScrollOffset) {
+ // Fotofoo.libraryView.set('verticalScrollOffset', verticalScrollOffset);
+ // }
+ // });
return sc_super();
},
- willLoseFirstResponder: function() {
- var verticalScrollOffset = Fotofoo.libraryView.get('verticalScrollOffset');
- this.set('_verticalScrollOffset', verticalScrollOffset);
- },
+ // willLoseFirstResponder: function() {
+ // var verticalScrollOffset = Fotofoo.libraryView.get('verticalScrollOffset');
+ // this.set('_verticalScrollOffset', verticalScrollOffset);
+ // },
newFolder: function() {
return Fotofoo.foldersController.newFolder();
View
4 server/fotofoo.js
@@ -130,7 +130,7 @@ server.post(/^(\/.*)$/, function (req, res, match) {
if (/^application\/json/.test(req.headers['content-type'])) {
req.setBodyEncoding('utf8');
req.addListener('data', function (json) {
- var name = 'untitled folder',
+ var name = "untitled folder",
nextSlot = -1,
dirname = path.dirname(guid),
p = path.join(ROOT, dirname),
@@ -155,7 +155,7 @@ server.post(/^(\/.*)$/, function (req, res, match) {
}
}
- if (++nextSlot > 0) name = 'untitled folder ' + nextSlot;
+ if (++nextSlot > 0) name = "untitled folder " + nextSlot;
fs.mkdir(path.join(p, name), 0755, function (err) {
if (err) throw err;

0 comments on commit cdc2874

Please sign in to comment.
Something went wrong with that request. Please try again.