Permalink
Browse files

implement dummy fadeIn/fadeOut methods

  • Loading branch information...
1 parent 1c9face commit 7c12a77d64e8f29c77751ba894efe6e9d34e7c66 @mislav committed Nov 6, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 app/assets/javascripts/application.js
@@ -20,6 +20,18 @@ $(function(){
$('a[rel*=facebox]').facebox()
})
+$.fn.fadeIn = function(speed, fn) {
+ if (typeof speed == 'function') fn = speed
+ this.show()
+ if (fn) fn.call()
+}
+
+$.fn.fadeOut = function(speed, fn) {
+ if (typeof speed == 'function') fn = speed
+ this.hide()
+ if (fn) fn.call()
+}
+
$(document).delegate('#facebox .netflix_picker article', 'click', function(e) {
if (e.which == 1) {
var netflixId = $(this).data('netflix-id')

0 comments on commit 7c12a77

Please sign in to comment.