logic cleanup
This commit is contained in:
parent
0e53d1ee86
commit
61903665df
1 changed files with 4 additions and 10 deletions
|
@ -548,7 +548,9 @@ $(function() {
|
||||||
this.clearText.html(
|
this.clearText.html(
|
||||||
converter.makeHtml(this.clearText.html())
|
converter.makeHtml(this.clearText.html())
|
||||||
);
|
);
|
||||||
|
this.clearText.removeClass('hidden');
|
||||||
}
|
}
|
||||||
|
this.prettyMessage.addClass('hidden');
|
||||||
break;
|
break;
|
||||||
case 'syntaxhighlighting':
|
case 'syntaxhighlighting':
|
||||||
if (typeof prettyPrint == 'function') prettyPrint();
|
if (typeof prettyPrint == 'function') prettyPrint();
|
||||||
|
@ -556,14 +558,6 @@ $(function() {
|
||||||
// Convert URLs to clickable links.
|
// Convert URLs to clickable links.
|
||||||
helper.urls2links(this.clearText);
|
helper.urls2links(this.clearText);
|
||||||
helper.urls2links(this.prettyPrint);
|
helper.urls2links(this.prettyPrint);
|
||||||
}
|
|
||||||
if (format == 'markdown')
|
|
||||||
{
|
|
||||||
this.clearText.removeClass('hidden');
|
|
||||||
this.prettyMessage.addClass('hidden');
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this.clearText.addClass('hidden');
|
this.clearText.addClass('hidden');
|
||||||
this.prettyMessage.removeClass('hidden');
|
this.prettyMessage.removeClass('hidden');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue