resources/src/js/zotero.js
// show an alert message on the screen for 2s
show an alert message on the screen for 2s
show an alert message on the screen for 2s
function showAlert(message, subMessage, type) {
	var alertClass = 'alert-' + type;
	$("#alert-box").html('<strong>' + message + '</strong>: ' + subMessage);
	$("#alert-box").removeClass(alertClass).addClass(alertClass);
	$('#alert-box').slideDown("fast");
	setTimeout(function() {
	    $('#alert-box').slideUp("fast");
	}, 2000);
    }
function showAlert ( message , subMessage , type ) { var alertClass = 'alert-' + type ; $ ( "#alert-box" ) . html ( '<strong>' + message + '</strong>: ' + subMessage ) ; $ ( "#alert-box" ) . removeClass ( alertClass ) . addClass ( alertClass ) ; $ ( '#alert-box' ) . slideDown ( "fast" ) ; setTimeout ( function ( ) { $ ( '#alert-box' ) . slideUp ( "fast" ) ; } , 2000 ) ; }
show an alert message on the screen for 2s
show an alert message on the screen for 2s