NIHVIVO-3419: Improved UX for adding individuals in a first time VITRO installation
This commit is contained in:
parent
8a01fb41f4
commit
45d217e579
4 changed files with 50 additions and 2 deletions
27
webapp/web/js/siteAdmin/siteAdminUtils.js
Normal file
27
webapp/web/js/siteAdmin/siteAdminUtils.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
/*Display bubble message letting the user knows that it is necessary to create class groups and associate classes with class groups when there is no individual classes to select in Data Input section and
|
||||
hide it when there are classes*/
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
var classesInSelectList = $('#addIndividualClass option').length;
|
||||
|
||||
if (classesInSelectList == 0) {
|
||||
$('#addIndividualClass input[type="submit"]').css('opacity','.4').click(function(event){
|
||||
event.preventDefault();
|
||||
$('#addClassBubble').effect( "shake", {times:2, direction:"up", distance:5}, 50 );
|
||||
});
|
||||
|
||||
$('#VClassURI').css('width','150px');
|
||||
|
||||
$('#addClassBubble').show();
|
||||
|
||||
}else{
|
||||
$('#addIndividualClass input[type="submit"]').removeClass('opacity');
|
||||
|
||||
$('#VClassURI').removeClass('width');
|
||||
|
||||
$('#addClassBubble').hide();
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue