Sha256: 10116e50275bbe6cb0d5b5c64f37f67cfca288ade1c2258c187438d8159742fe

Contents?: true

Size: 1.03 KB

Versions: 14

Compression:

Stored size: 1.03 KB

Contents

re_get_publication_show = function(page) {
  var id = $('.re-menu-publication-show:first').attr('id').replace('re_menu_publication_show_', '')
  $.get('/re_publications/' + id + '?page=' + page, null, null, 'script');
}


$(document).ready(function() {	  
  
  re_get_publication_show(1);
  
  $('.re-xtra-publication-next-enabled').live('click', function() {    
    var page = $(this).attr('href').replace('#', '')

    $('#re_publication_show').hide();
    $('#re_publication_show_pending').show();
    
    re_get_publication_show(page);
    return false;  
  });  
  $('.re-xtra-publication-next-disabled').live('click', function() {    
    return false;
  });  

  $('.re-xtra-publication-prev-enabled').live('click', function() {    
    var page = $(this).attr('href').replace('#', '')

    $('#re_publication_show').hide();
    $('#re_publication_show_pending').show();
    
    re_get_publication_show(page);
    return false;  
  });  
  $('.re-xtra-publication-prev-disabled').live('click', function() {    
    return false;
  });  

});


Version data entries

14 entries across 13 versions & 1 rubygems

Version Path
rules_engine-0.3.3 spec/rails_3_0_0_root/public/javascripts/rules_engine/re_publication_show.js
rules_engine-0.3.3 generators/manifests/templates/public/javascripts/rules_engine/re_publication_show.js
rules_engine-0.3.2 generators/manifests/templates/public/javascripts/rules_engine/re_publication_show.js
rules_engine-0.3.1 generators/manifests/templates/public/javascripts/rules_engine/re_publication_show.js
rules_engine-0.3.0 generators/manifests/templates/public/javascripts/rules_engine/re_publication_show.js
rules_engine-0.2.0 rails_generators/templates/public/javascripts/rules_engine/re_publication_show.js
rules_engine-0.1.10 rails_generators/templates/public/javascripts/rules_engine/re_publication_show.js
rules_engine-0.1.9 rails_generators/templates/public/javascripts/rules_engine/re_publication_show.js
rules_engine-0.1.8 rails_generators/templates/public/javascripts/rules_engine/re_publication_show.js
rules_engine-0.1.7 rails_generators/templates/public/javascripts/rules_engine/re_publication_show.js
rules_engine-0.1.6 rails_generators/templates/public/javascripts/rules_engine/re_publication_show.js
rules_engine-0.1.5 rails_generators/templates/public/javascripts/rules_engine/re_publication_show.js
rules_engine-0.1.4 rails_generators/templates/public/javascripts/rules_engine/re_publication_show.js
rules_engine-0.1.3 rails_generators/templates/public/javascripts/rules_engine/re_publication_show.js