NIHVIVO-2006 Realized that I had introduced a bug in r7283 and was missing the closing </a> for #classes-in-classgroup list items. IE was not a fan. Also removed labels since Raphael uses VML for graphing in IE and I wasn't reliably able to target and hide rvml:textpath.
This commit is contained in:
parent
1fafef06ba
commit
a8d353dab1
2 changed files with 15 additions and 28 deletions
|
@ -63,7 +63,6 @@ public class FreemarkerConfigurationLoader {
|
|||
return portal.getThemeDir().replaceAll("/$", "");
|
||||
}
|
||||
|
||||
|
||||
protected Configuration getConfigForTheme(String themeDir) {
|
||||
|
||||
// The template loader is theme-specific because it specifies the theme template directory as a location to
|
||||
|
@ -126,6 +125,10 @@ public class FreemarkerConfigurationLoader {
|
|||
log.error("Error setting value for url_escaping_charset.");
|
||||
}
|
||||
|
||||
// auto include setup.ftl which allows for globals to be easily defined in a template that's always included
|
||||
// used primarily to setup ${bodyClasses} for now
|
||||
config.addAutoInclude("pageSetup.ftl");
|
||||
|
||||
config.setTemplateLoader(getTemplateLoader(config, themeDir));
|
||||
|
||||
return config;
|
||||
|
@ -160,7 +163,5 @@ public class FreemarkerConfigurationLoader {
|
|||
log.error("Error creating template loaders");
|
||||
}
|
||||
return mtl;
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -41,12 +41,10 @@ var browseClassGroups = {
|
|||
$('ul#classes-in-classgroup li a').hover(function() {
|
||||
var classIndex = $('ul#classes-in-classgroup li a').index(this);
|
||||
$('#visual-graph svg path').eq(classIndex).attr('fill', '#ccc');
|
||||
$('#visual-graph svg text').eq(classIndex).toggle();
|
||||
return false;
|
||||
}, function() {
|
||||
var classIndex = $('ul#classes-in-classgroup li a').index(this);
|
||||
$('#visual-graph svg path').eq(classIndex).attr('fill', '#999');
|
||||
$('#visual-graph svg text').eq(classIndex).toggle();
|
||||
})
|
||||
},
|
||||
|
||||
|
@ -93,8 +91,7 @@ var browseClassGroups = {
|
|||
|
||||
// Build the content of each list item, piecing together each component
|
||||
listItem = '<li role="listitem">';
|
||||
listItem += '<a href="'+ indexUrl +'" title="Browse all '+ name +' content">'+ name;
|
||||
listItem += ' <span>('+ indivCount +')</span>';
|
||||
listItem += '<a href="'+ indexUrl +'" title="Browse all '+ name +' content">'+ name +'</a>';
|
||||
listItem += '</li>';
|
||||
|
||||
// Add the list item to the array of classes
|
||||
|
@ -156,14 +153,6 @@ var graphClassGroups = {
|
|||
|
||||
var chart = r.g.hbarchart(0, 16, 300, height, [values], {type:"soft", singleColor:"#999"});
|
||||
|
||||
// Add the class names as labels and then hide them
|
||||
chart.label(labels, true);
|
||||
// Getting a JS error in the console when trying to add the class
|
||||
// "setting a property that has only a getter"
|
||||
// $('svg text').addClass('hidden');
|
||||
// so using .hide() instead
|
||||
$('svg text').hide();
|
||||
|
||||
// Was unable to append <a> within <svg> -- was always hidden and couldn't get it to display
|
||||
// so using jQuery click to add links
|
||||
$('rect').click(function() {
|
||||
|
@ -185,20 +174,17 @@ var graphClassGroups = {
|
|||
|
||||
// On hover
|
||||
// 1. Change bar color
|
||||
// 2. Reveal label
|
||||
// 3. Highlight class name in main list
|
||||
// 2. Highlight class name in main list
|
||||
chart.hover(function() {
|
||||
this.bar.attr({fill: "#ccc"});
|
||||
$('rect').hover(function() {
|
||||
var index = $('rect').index(this);
|
||||
$('svg text').eq(index).show();
|
||||
$('#classes-in-classgroup li a').eq(index).addClass('selected');
|
||||
})
|
||||
}, function() {
|
||||
this.bar.attr({fill: "#999"});
|
||||
$('rect').hover(function() {
|
||||
var index = $('rect').index(this);
|
||||
$('svg text').eq(index).hide();
|
||||
$('#classes-in-classgroup li a').eq(index).removeClass('selected');
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue