Update optionsModal

Took 12 minutes
This commit is contained in:
Tobias Hopp 2020-10-05 18:26:28 +02:00
parent a73b30d965
commit 44c109b343
3 changed files with 23 additions and 17 deletions

26
.idea/workspace.xml generated
View File

@ -22,7 +22,6 @@
<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$/templates/faq.tmpl.html" beforeDir="false" afterPath="$PROJECT_DIR$/templates/faq.tmpl.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/templates/start.tmpl.html" beforeDir="false" afterPath="$PROJECT_DIR$/templates/start.tmpl.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/vendor/js/faq.js" beforeDir="false" afterPath="$PROJECT_DIR$/vendor/js/faq.js" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@ -34,7 +33,7 @@
<execution />
</component>
<component name="DarkyenusTimeTracker">
<option name="totalTimeSeconds" value="91055" />
<option name="totalTimeSeconds" value="91835" />
<option name="gitIntegration" value="true" />
<option name="naggedAbout" value="1" />
</component>
@ -80,7 +79,7 @@
<updated>1601618466935</updated>
<workItem from="1601618467981" duration="36776000" />
<workItem from="1601809534320" duration="1558000" />
<workItem from="1601811106543" duration="24795000" />
<workItem from="1601811106543" duration="25808000" />
</task>
<task id="LOCAL-00001" summary="Initial commit">
<created>1601618764031</created>
@ -306,7 +305,14 @@
<option name="project" value="LOCAL" />
<updated>1601880753928</updated>
</task>
<option name="localTasksCounter" value="33" />
<task id="LOCAL-00033" summary="Performance update, add setup for refresh rate">
<created>1601892712824</created>
<option name="number" value="00033" />
<option name="presentableId" value="LOCAL-00033" />
<option name="project" value="LOCAL" />
<updated>1601892712824</updated>
</task>
<option name="localTasksCounter" value="34" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
@ -325,7 +331,6 @@
<option name="oldMeFiltersMigrated" value="true" />
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="Fixing a bug where the answer is posted directly" />
<MESSAGE value="Final upload, should be running now" />
<MESSAGE value="Fixing a little things" />
<MESSAGE value="Should be the final commit" />
@ -350,7 +355,8 @@
<MESSAGE value="Add copy-url button" />
<MESSAGE value="Edit time and add br to the page end" />
<MESSAGE value="Store interval in a variable to turn it off later" />
<option name="LAST_COMMIT_MESSAGE" value="Store interval in a variable to turn it off later" />
<MESSAGE value="Performance update, add setup for refresh rate" />
<option name="LAST_COMMIT_MESSAGE" value="Performance update, add setup for refresh rate" />
</component>
<component name="WindowStateProjectService">
<state x="728" y="326" width="800" height="683" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1601632929047">
@ -389,10 +395,10 @@
<screen x="0" y="34" width="1920" height="1046" />
</state>
<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="1601843970730">
<state x="555" y="292" width="800" height="535" key="Vcs.Push.Dialog.v2" timestamp="1601892939700">
<screen x="0" y="34" width="1920" height="1046" />
</state>
<state x="555" y="292" width="800" height="535" key="Vcs.Push.Dialog.v2/0.34.1920.1046@0.34.1920.1046" timestamp="1601843970730" />
<state x="555" y="292" width="800" height="535" key="Vcs.Push.Dialog.v2/0.34.1920.1046@0.34.1920.1046" timestamp="1601892939700" />
<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" />
</state>
@ -405,9 +411,9 @@
<screen x="0" y="34" width="1920" height="1046" />
</state>
<state x="641" y="122" width="638" height="870" key="find.popup/0.34.1920.1046@0.34.1920.1046" timestamp="1601836650536" />
<state x="623" y="264" width="672" height="678" key="search.everywhere.popup" timestamp="1601836633752">
<state x="623" y="264" width="672" height="678" key="search.everywhere.popup" timestamp="1601893370899">
<screen x="0" y="34" width="1920" height="1046" />
</state>
<state x="623" y="264" width="672" height="678" key="search.everywhere.popup/0.34.1920.1046@0.34.1920.1046" timestamp="1601836633752" />
<state x="623" y="264" width="672" height="678" key="search.everywhere.popup/0.34.1920.1046@0.34.1920.1046" timestamp="1601893370899" />
</component>
</project>

View File

@ -121,7 +121,8 @@
<div class="modal-body">
<span class="text-danger" id="optionsErrorMsg"></span>
<div class="form-group">
<label for="lock_room">Lock Room?</label>
<input type="checkbox" id="lock_room">
</div>
</div>
<div class="modal-footer">

11
vendor/js/faq.js vendored
View File

@ -292,15 +292,14 @@ function welcomeMessage()
}
function closeWelcome()
{
function closeWelcome() {
let refresh_rate = $('#refresh_rate').val();
if( refresh_rate < 2 || refresh_rate > 122 )
{
if (refresh_rate < 2 || refresh_rate > 122) {
refresh_rate = 2;
}
let q_interval = setInterval( function() { getQuestions(); }, refresh_rate * 1000 );
let q_interval = setInterval(function () {
getQuestions();
}, refresh_rate * 1000);
}