Allowing html content in answerModal
Took 12 minutes
This commit is contained in:
parent
e31809f722
commit
33fcaa4b2e
21
.idea/workspace.xml
generated
21
.idea/workspace.xml
generated
@ -21,7 +21,6 @@
|
|||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="fc13552d-b118-4828-b78f-fc8714e0cfdc" name="Default Changelist" comment="Final COMMIT!!!">
|
<list default="true" id="fc13552d-b118-4828-b78f-fc8714e0cfdc" name="Default Changelist" comment="Final COMMIT!!!">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/templates/faq.tmpl.html" beforeDir="false" afterPath="$PROJECT_DIR$/templates/faq.tmpl.html" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/vendor/js/faq.js" beforeDir="false" afterPath="$PROJECT_DIR$/vendor/js/faq.js" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/vendor/js/faq.js" beforeDir="false" afterPath="$PROJECT_DIR$/vendor/js/faq.js" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
@ -33,7 +32,7 @@
|
|||||||
<execution />
|
<execution />
|
||||||
</component>
|
</component>
|
||||||
<component name="DarkyenusTimeTracker">
|
<component name="DarkyenusTimeTracker">
|
||||||
<option name="totalTimeSeconds" value="86128" />
|
<option name="totalTimeSeconds" value="86899" />
|
||||||
<option name="gitIntegration" value="true" />
|
<option name="gitIntegration" value="true" />
|
||||||
<option name="naggedAbout" value="1" />
|
<option name="naggedAbout" value="1" />
|
||||||
</component>
|
</component>
|
||||||
@ -79,7 +78,7 @@
|
|||||||
<updated>1601618466935</updated>
|
<updated>1601618466935</updated>
|
||||||
<workItem from="1601618467981" duration="36776000" />
|
<workItem from="1601618467981" duration="36776000" />
|
||||||
<workItem from="1601809534320" duration="1558000" />
|
<workItem from="1601809534320" duration="1558000" />
|
||||||
<workItem from="1601811106543" duration="16219000" />
|
<workItem from="1601811106543" duration="17301000" />
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00001" summary="Initial commit">
|
<task id="LOCAL-00001" summary="Initial commit">
|
||||||
<created>1601618764031</created>
|
<created>1601618764031</created>
|
||||||
@ -256,7 +255,14 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1601838265842</updated>
|
<updated>1601838265842</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="26" />
|
<task id="LOCAL-00026" summary="Fix bug #11, little boring">
|
||||||
|
<created>1601838526640</created>
|
||||||
|
<option name="number" value="00026" />
|
||||||
|
<option name="presentableId" value="LOCAL-00026" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1601838526640</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="27" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TypeScriptGeneratedFilesManager">
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
@ -297,7 +303,8 @@
|
|||||||
<MESSAGE value="Fix issue #9" />
|
<MESSAGE value="Fix issue #9" />
|
||||||
<MESSAGE value="Updating a little time-issue and install gitignore" />
|
<MESSAGE value="Updating a little time-issue and install gitignore" />
|
||||||
<MESSAGE value="Fix issue #10, newlines should be showing up now" />
|
<MESSAGE value="Fix issue #10, newlines should be showing up now" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="Fix issue #10, newlines should be showing up now" />
|
<MESSAGE value="Fix bug #11, little boring" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Fix bug #11, little boring" />
|
||||||
</component>
|
</component>
|
||||||
<component name="WindowStateProjectService">
|
<component name="WindowStateProjectService">
|
||||||
<state x="728" y="326" width="800" height="683" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1601632929047">
|
<state x="728" y="326" width="800" height="683" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1601632929047">
|
||||||
@ -336,10 +343,10 @@
|
|||||||
<screen x="0" y="34" width="1920" height="1046" />
|
<screen x="0" y="34" width="1920" height="1046" />
|
||||||
</state>
|
</state>
|
||||||
<state x="441" y="192" width="1037" height="736" key="SettingsEditor/0.34.1920.1046@0.34.1920.1046" timestamp="1601632853044" />
|
<state x="441" y="192" width="1037" height="736" key="SettingsEditor/0.34.1920.1046@0.34.1920.1046" timestamp="1601632853044" />
|
||||||
<state x="555" y="292" width="800" height="535" key="Vcs.Push.Dialog.v2" timestamp="1601838267140">
|
<state x="555" y="292" width="800" height="535" key="Vcs.Push.Dialog.v2" timestamp="1601838527745">
|
||||||
<screen x="0" y="34" width="1920" height="1046" />
|
<screen x="0" y="34" width="1920" height="1046" />
|
||||||
</state>
|
</state>
|
||||||
<state x="555" y="292" width="800" height="535" key="Vcs.Push.Dialog.v2/0.34.1920.1046@0.34.1920.1046" timestamp="1601838267140" />
|
<state x="555" y="292" width="800" height="535" key="Vcs.Push.Dialog.v2/0.34.1920.1046@0.34.1920.1046" timestamp="1601838527745" />
|
||||||
<state x="809" y="122" width="639" height="876" key="com.intellij.database.view.ui.AbstractDbRefactoringDialog" timestamp="1601632983240">
|
<state x="809" y="122" width="639" height="876" key="com.intellij.database.view.ui.AbstractDbRefactoringDialog" timestamp="1601632983240">
|
||||||
<screen x="0" y="34" width="1920" height="1046" />
|
<screen x="0" y="34" width="1920" height="1046" />
|
||||||
</state>
|
</state>
|
||||||
|
2
vendor/js/faq.js
vendored
2
vendor/js/faq.js
vendored
@ -158,6 +158,8 @@ function openAnswerModal( id )
|
|||||||
if( result.data.answer !== null && result.data.answer.length > 5 )
|
if( result.data.answer !== null && result.data.answer.length > 5 )
|
||||||
{
|
{
|
||||||
let this_answer = result.data.answer;
|
let this_answer = result.data.answer;
|
||||||
|
this_answer = new DOMParser().parseFromString(this_answer, "text/html").documentElement.textContent;
|
||||||
|
|
||||||
this_answer.replace(/(?:\r\n|\r|\n)/g, '<br>');
|
this_answer.replace(/(?:\r\n|\r|\n)/g, '<br>');
|
||||||
answerText.val( this_answer );
|
answerText.val( this_answer );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user