Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/controllers/intervals_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def send_thumbnail
end

def send_sprite

send_file(@interval.sprite_file, :type => 'image/jpeg', :disposition => 'inline', :url_based_filename => true)
end

Expand Down
6 changes: 3 additions & 3 deletions public/javascripts/application.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* Thumbnail fast scrub */
function changeSpriteWindow(obj){
//TODO: figure out how to grab misc 10 pixel additional margin
// TODO: figure out how to grab misc 10 pixel additional margin
var extra_margin =10;
var newY = (event.clientX-($(obj).position().left)-extra_margin)*90;
var position = "0px " + newY + "px "
var newX = (event.clientX-($(obj).position().left)-extra_margin)*160;
var position = newX +"px 0px"
obj.style.backgroundPosition = position;
}

Expand Down