Sha256: 6a12dd002aa1323bfb6e895fbf9ce797dcf6c42fd33d05be7de8c9896f8aed74

Contents?: true

Size: 533 Bytes

Versions: 1

Compression:

Stored size: 533 Bytes

Contents

CATARSE.ProjectsIndexView = Backbone.View.extend({
  initialize: function() {
    $('#press img').mouseover(function(){
      var src = /\/(\w+)_pb.png\?*\d*$/.exec($(this).attr('src'))
      if(!src)
        return
      src = src[1]
      $(this).attr('src', '/assets/press/' + src + '.png')
    })
    $('#press img').mouseleave(function(){
      var src = /\/(\w+).png\?*\d*$/.exec($(this).attr('src'))
      if(!src)
        return
      src = src[1]
      $(this).attr('src', '/assets/press/' + src + '_pb.png')
    })
  }
})

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
catarse_core-1.0.0.beta app/assets/javascripts/app/views/projects/index.js