mirror of
https://github.com/chenasraf/snpr.git
synced 2026-05-17 17:38:07 +00:00
59 lines
1.8 KiB
JavaScript
59 lines
1.8 KiB
JavaScript
//= require jquery
|
|
//= require jquery_ujs
|
|
//= require jquery.ui.all
|
|
//= require ./dalliance-compiled.js
|
|
//= require ./jquery.jqplot.min
|
|
//= require ./jqplot.barRenderer.min.js
|
|
//= require ./jqplot.cursor.min.js
|
|
//= require ./jqplot.dateAxisRenderer.min.js
|
|
//= require ./jqplot.highlighter.min.js
|
|
//= require ./jqplot.pieRenderer.min.js
|
|
//= require jquery_nested_form
|
|
//= require bootstrap.min
|
|
//= require_self
|
|
// = require_tree .
|
|
|
|
$(document).ready(function() {
|
|
$('#update_user').click(function() {
|
|
$('#update_user').val("Updating...").addClass("disabled");
|
|
setTimeout(function(){ $('#update_user').val("Update Information").removeClass("disabled");},1000);
|
|
});
|
|
|
|
//$("#PaperMendeley").tablesorter({sortList: [[2,1]]});
|
|
//$("#PaperPlos").tablesorter({sortList: [[2,1]]});
|
|
|
|
$('#remove_help_one').click(function() {
|
|
if( $('#help_three').is(":hidden") && $('#help_two').is(":hidden") ){
|
|
$("#help_block").hide("slow");
|
|
}
|
|
else {
|
|
$('#help_one').hide('slow');
|
|
}
|
|
});$
|
|
$('#remove_help_two').click(function() {
|
|
if( $('#help_one').is(":hidden") && $('#help_three').is(":hidden") ){
|
|
$("#help_block").hide("slow");
|
|
}
|
|
else {
|
|
$('#help_two').hide('slow');
|
|
}
|
|
});
|
|
$('#remove_help_three').click(function() {
|
|
if( $('#help_one').is(":hidden") && $('#help_two').is(":hidden") ){
|
|
$("#help_block").hide("slow");
|
|
}
|
|
else {
|
|
$('#help_three').hide('slow');
|
|
};
|
|
});
|
|
// Jump to tab if link like rs7412080#plos is opened
|
|
$(function(){
|
|
var hash = window.location.hash;
|
|
var anchor = $('a[href$="'+hash+'"]');
|
|
if (anchor.length > 0){
|
|
anchor.click();
|
|
}
|
|
});
|
|
|
|
});
|