Permalink
Browse files

refresh db on upload

  • Loading branch information...
1 parent 8e335ff commit e1a7cffb39b0dc67c2305962cab88f69b3bc9361 @YenTheFirst YenTheFirst committed Mar 8, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 pizza.rb
  2. +1 −1 public/index.html
View
1 pizza.rb
@@ -3,6 +3,7 @@
$mpd=MPD.new("chicken.local")
track_sort=Proc.new do |t1,t2|
+ #REWRITE THIS3
if t1["Track"]&&t2["Track"]
t1["Track"].to_i<=>t2["Track"].to_i
elsif t1["Track"]
View
2 public/index.html
@@ -203,7 +203,7 @@
var uploader = new qq.FileUploader({
element: document.getElementById('file-uploader'),
action: '/upload_file'//,
- //onComplete:function(){ajax('/reload_db','put',null,function(d){update_view();});}
+ onComplete:function(){ajax('/reload_db','put',null,function(d){update_view();});}
});
document.getElementById('qq-upload-button').textContent="Upload Songs"
}

0 comments on commit e1a7cff

Please sign in to comment.