Commit 4af7dc8f authored by Jim Tittsler's avatar Jim Tittsler

iDevices use lowercase data-idevice

parent 267dad7f
......@@ -242,7 +242,7 @@ module.exports = {
// restyle iDevices
$('.eXe-iDevice').each(function(){
var classes, $tloc, $inner,
idtype = $(this).data('iDevice'),
idtype = $(this).data('idevice'),
idtheme = $(this).data('theme') || 'line',
idtitle, idbody;
idtheme = idtheme.toLowerCase();
......@@ -253,7 +253,7 @@ module.exports = {
})[0];
}
// WordPress theme uses spaces in iDevice types
idtype = idtype.replace(/_+/g, ' ');
idtype = $.trim(idtype.replace(/_+/g, ' '));
// process new style Template:IDevice separately
if ($(this).hasClass('iDevice')) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment