Commit 41a9cac8 authored by Jim Tittsler's avatar Jim Tittsler

WP: No longer insert legacy titles.

Related to issue #9
parent 0632ca2d
......@@ -2,7 +2,7 @@
/* jshint node: true, multistr: true, trailing: true, esnext: true */
"use strict";
var VERSION = '0.10.1',
var VERSION = '0.10.2',
JQUERY = 'http://code.jquery.com/jquery-2.1.1.min.js',
FILEPATH = '/home/www/www';
......@@ -316,12 +316,6 @@ function processPage(pi) {
$this.html('<iframe width="100%" height="' + size + '" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=' + encodeURIComponent(link) + '&amp;auto_play=' + autoplay + '&amp;hide_related=true&amp;show_comments=false&amp;show_user=true&amp;show_reposts=false&amp;visual=true"></iframe>');
}
});
// if we don't have an h1, but we do have a legacytitle
// then insert it as an h1
if (($('h1>.mw-headline').length === 0) && legacytitle) {
console.log('!!!! legacy title inserted', legacytitle);
$('#bodyContent').prepend('<h1><span class="mw-headline">' + legacytitle + '</span></h1>\n');
}
// make stylesheet & Javascript references point to WikiEducator
$('head').find('link[rel="stylesheet"]').each(function() {
......
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