diff --git a/previewers/betatest/js/richhtml.js b/previewers/betatest/js/richhtml.js index d068ffc..c8c15e4 100644 --- a/previewers/betatest/js/richhtml.js +++ b/previewers/betatest/js/richhtml.js @@ -25,9 +25,15 @@ function writeContentAndData(data, fileUrl, file, title, authors) { header.append($('
').html($.i18n('richContentWarning')).addClass('center')); subheader = $('
').appendTo(header).addClass('center'); subheader.append($("
").addClass("btn btn-default") - .html("" + $.i18n('displayWithRichContent') + "")); + .html($('').html( $.i18n('displayWithRichContent')) + .click(function(){console.log('Click');$('.preview').html(theData);}) + ) + ); subheader.append($("
").addClass("btn btn-default") - .html("" + $.i18n('displayWithoutRichContent') + "")); + .html($('').html( $.i18n('displayWithoutRichContent')) + .click(function(){console.log('Click');$('.preview').html(filterXSS(theData,options));}) + ) + ); } else { //Display filtered content as for normal HTML Previewer $('.preview').append($("
").html(filterXSS(data)));