diff --git a/powerdeletesuite.js b/powerdeletesuite.js
index 8e9aefd..ece2f7b 100644
--- a/powerdeletesuite.js
+++ b/powerdeletesuite.js
@@ -32,8 +32,7 @@ pdApp = {
}
pdApp.prepStyles();
pdApp.prepCentral();
-
- $('#pd__central').wrapInner('
');
+ $('#pd__central').wrapInner('');
},
prepStyles: function () {
$.ajax({
@@ -46,28 +45,15 @@ pdApp = {
});
},
prepCentral: function () {
- var c = $('#pd__central');
- c.append('Power Delete Suite
');
- c.append('Please review all options before pressing \'Process\'. This process is NOT reversible.
');
- c.append('
');
-
- c.append('Actions to perform
');
- c.append('');
- c.append('');
- c.append(' ');
- c.append('
');
-
- c.append('Filters
');
- c.append('');
- c.append('');
- c.append('');
- if ($('#side-mod-list').length > 0) {
- c.append('');
- }
- c.append('
');
-
- c.append('');
- pdApp.prepSubs();
+ $.ajax({
+ url: 'https://www.reddit.com/r/PowerDeleteSuite/wiki/centralform.json',
+ context: $('#pd__central')
+ }).then(function(data) {
+ $(this).html($("").html(data.data.content_md).text());
+ pdApp.prepSubs();
+ }, function() {
+ alert('Error retreiving markup from /r/PowerDeleteSuite');
+ });
},
prepSubs: function () {
var sub_arr = [], i, sid;