Commit 7ad5fc44 authored by lindonb's avatar lindonb

[REF] security timeout: Remove checkTimeout() calls made unnecessary from r69340

parent f7ebfdce
Pipeline #50015898 failed with stages
in 65 minutes and 55 seconds
......@@ -44,13 +44,7 @@
</div>
</div>
<div class="submit text-center">
<input
type="submit"
class="btn btn-primary"
name="duplicate"
onclick="checkTimeout()"
value="{tr}Duplicate{/tr}"
>
<input type="submit" class="btn btn-primary" name="duplicate" value="{tr}Duplicate{/tr}">
</div>
</form>
{/if}
......@@ -313,13 +313,7 @@ if ($(this).val() != '') {
<div class="form-group row">
<div class="col-md-8 col-md-offset-4">
<input
type="submit"
class="btn btn-primary"
value="{tr}Save{/tr}"
name="edit"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary" value="{tr}Save{/tr}" name="edit">
</div>
</div>
</form>
......
......@@ -51,7 +51,6 @@
class="btn btn-primary btn-sm"
name="s_f_attachments-upload"
value="{tr}Attach{/tr}"
onclick="checkTimeout()"
>
<input type="hidden" name="s_f_attachments-page" value="{$page|escape}">
{ticket}
......
......@@ -188,7 +188,6 @@
form="fgalform"
name='movesel'
value="{tr}Move{/tr}"
onclick="checkTimeout()"
>
</div>
</div>
......
......@@ -47,7 +47,7 @@
<div class="form-group row">
<div class="col-sm-10 offset-sm-2">
{* no js confirmation or ticket needed since the preview is sent to another page *}
<input type="submit" class="btn btn-secondary" name="preview" value="{tr}Send{/tr}" onclick="checkTimeout()">
<input type="submit" class="btn btn-secondary" name="preview" value="{tr}Send{/tr}">
</div>
</div>
</form>
......@@ -70,7 +70,7 @@
<div class="form-group row">
<div class="col-sm-10 offset-sm-2">
{* no js confirmation or ticket needed since the preview is sent to another page *}
<input type="submit" class="btn btn-secondary" name="preview" value="{tr}Send{/tr}" onclick="checkTimeout()">
<input type="submit" class="btn btn-secondary" name="preview" value="{tr}Send{/tr}">
<input type="checkbox" name="replytome" id="replytome">
<label for="replytome">
{tr}Reply-to my email{/tr}
......
......@@ -100,13 +100,7 @@
value="{tr}Delete{/tr}"{if $js}
onclick="confirmSimple(event, '{tr}Delete selected messages?{/tr}')"{/if}
>
<input
type="submit"
class="btn btn-primary btn-sm"
name="archive"
value="{tr}Archive{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary btn-sm" name="archive" value="{tr}Archive{/tr}">
<input type="submit" class="btn btn-primary btn-sm" name="download" value="{tr}Download{/tr}">
<select name="action" class="form-control ml-4 mr-2">
<option value="isRead_y">{tr}Mark as read{/tr}</option>
......@@ -114,13 +108,7 @@
<option value="isFlagged_y">{tr}Mark as flagged{/tr}</option>
<option value="isFlagged_n">{tr}Mark as unflagged{/tr}</option>
</select>
<input
type="submit"
class="btn btn-primary btn-sm"
name="mark"
value="{tr}Mark{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary btn-sm" name="mark" value="{tr}Mark{/tr}">
</div>
{/if}
</form>
......
......@@ -35,12 +35,12 @@
<input type="hidden" name="action" value="isFlagged">
{if $msg.isFlagged eq 'y'}
<input type="hidden" name="actionval" value="n">
<button type="submit" class="btn btn-link" onclick="checkTimeout()">
<button type="submit" class="btn btn-link">
<i class="fas fa-flag tips" aria-hidden="true" title="{tr}Flagged:Click to unflag{/tr}"></i>
</button>
{else}
<input type="hidden" name="actionval" value="y">
<button type="submit" class="btn btn-link" onclick="checkTimeout()">
<button type="submit" class="btn btn-link">
<i class="far fa-flag tips" aria-hidden="true" title="{tr}Not flagged:Click to flag{/tr}"></i>
</button>
{/if}
......
......@@ -36,12 +36,12 @@
<input type="hidden" name="action" value="isFlagged">
{if $msg.isFlagged eq 'y'}
<input type="hidden" name="actionval" value="n">
<button type="submit" class="btn btn-link" onclick="checkTimeout()">
<button type="submit" class="btn btn-link">
<i class="fas fa-flag tips" aria-hidden="true" title="{tr}Flagged:Click to unflag{/tr}"></i>
</button>
{else}
<input type="hidden" name="actionval" value="y">
<button type="submit" class="btn btn-link" onclick="checkTimeout()">
<button type="submit" class="btn btn-link">
<i class="far fa-flag tips" aria-hidden="true" title="{tr}Not flagged:Click to flag{/tr}"></i>
</button>
{/if}
......
......@@ -36,12 +36,12 @@
<input type="hidden" name="action" value="isFlagged">
{if $msg.isFlagged eq 'y'}
<input type="hidden" name="actionval" value="n">
<button type="submit" class="btn btn-link" onclick="checkTimeout()">
<button type="submit" class="btn btn-link">
<i class="fas fa-flag tips" aria-hidden="true" title="{tr}Flagged:Click to unflag{/tr}"></i>
</button>
{else}
<input type="hidden" name="actionval" value="y">
<button type="submit" class="btn btn-link" onclick="checkTimeout()">
<button type="submit" class="btn btn-link">
<i class="far fa-flag tips" aria-hidden="true" title="{tr}Not flagged:Click to flag{/tr}"></i>
</button>
{/if}
......
......@@ -59,13 +59,7 @@
value="{tr}Delete{/tr}"
onclick="confirmSimple(event, '{tr}Delete selected messages?{/tr}')"
>
<input
type="submit"
class="btn btn-primary btn-sm"
name="archive"
value="{tr}Move to archive{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary btn-sm" name="archive" value="{tr}Move to archive{/tr}">
<input type="submit" class="btn btn-primary btn-sm" name="download" value="{tr}Download{/tr}">
</div>
{jq notonready=true}
......
......@@ -74,7 +74,6 @@
value="{$moduleId}"
class="tips btn btn-link"
title=":{tr}Move up{/tr}"
onclick="checkTimeout()"
>
{icon name="up"}
</button>
......@@ -84,7 +83,6 @@
value="{$moduleId}"
class="tips btn btn-link"
title=":{tr}Move down{/tr}"
onclick="checkTimeout()"
>
{icon name="down"}
</button>
......@@ -94,7 +92,6 @@
value="{$moduleId}"
class="tips btn btn-link"
title=":{tr}Move to opposite side{/tr}"
onclick="checkTimeout()"
>
{icon name="move"}
</button>
......@@ -104,7 +101,6 @@
value="{$moduleId}"
class="tips btn btn-link"
title=":{tr}Unassign{/tr}"
onclick="checkTimeout()"
>
{icon name="remove"}
</button>
......
......@@ -59,13 +59,7 @@
{else}
{$label = "{tr}Modify account{/tr}"}
{/if}
<button
type="submit"
class="btn btn-secondary"
name="action"
value="{$action|escape:'attr'}"
onclick="checkTimeout()"
>
<button type="submit" class="btn btn-secondary" name="action" value="{$action|escape:'attr'}">
{$label}
</button>
{if $account.changeable==1 && $action=="edit"}
......
......@@ -63,7 +63,6 @@
name="action"
value="lock"
class="btn btn-link link-list"
onclick="checkTimeout()"
>
{icon name="$iconName"} {$iconLabel}
</button>
......
......@@ -167,7 +167,7 @@
</div>
</div>
</fieldset>
<input type="submit" class="btn btn-primary col-md-offset-4" name="create" value="{tr}Create a new book{/tr}" onclick="checkTimeout()">
<input type="submit" class="btn btn-primary col-md-offset-4" name="create" value="{tr}Create a new book{/tr}">
</form>
</div>
{/tab}
......
......@@ -389,7 +389,7 @@
<td>&nbsp;</td>
<td>
<input type="submit" class="btn btn-primary btn-sm" name="saveAction"
value="{tr}Save Action{/tr}" onclick="checkTimeout()">
value="{tr}Save Action{/tr}">
</td>
</tr>
</table>
......@@ -794,13 +794,7 @@
<div class="form-group row" style="display:block;">
<div class="col-sm-1 col-sm-offset-11">
<input
type="submit"
class="btn btn-primary btn-sm"
name="save"
value="{tr}Set{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary btn-sm" name="save" value="{tr}Set{/tr}">
</div>
</div>
<div class="form-group row" style="display:block;">
......@@ -845,13 +839,7 @@
</div>
<div class="form-group row">
<div class="col-sm-1 col-sm-offset-11">
<input
type="submit"
class="btn btn-primary btn-sm"
name="save"
value="{tr}Set{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary btn-sm" name="save" value="{tr}Set{/tr}"\>
</div>
</div>
</form>
......
......@@ -146,7 +146,7 @@
</div>
<div class="form-group row">
<div class="col-sm-8 col-sm-offset-4">
<input type="submit" class="btn btn-primary" name="save" value="{tr}Save{/tr}" onclick="checkTimeout()">
<input type="submit" class="btn btn-primary" name="save" value="{tr}Save{/tr}">
</div>
</div>
</form>
......@@ -170,7 +170,7 @@
</div>
<div class="form-group row">
<div class="col-sm-8 col-sm-offset-4">
<input type="submit" class="btn btn-primary btn-sm" name="import" value="{tr}Import{/tr}" onclick="checkTimeout()">
<input type="submit" class="btn btn-primary btn-sm" name="import" value="{tr}Import{/tr}">
</div>
</div>
</form>
......
......@@ -456,13 +456,7 @@
</div>
</div>
<div class="form-group row">
<input
type="submit"
class="btn btn-secondary col-sm-offset-3"
name="save"
value="{tr}Save{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-secondary col-sm-offset-3" \name="save" value="{tr}Save{/tr}">
</div>
</fieldset>
<fieldset>
......
......@@ -70,13 +70,7 @@
{/if}
<div class="form-group row">
<div class="col-sm-9 col-sm-offset-3">
<input
type="submit"
class="btn btn-secondary"
name="save"
value="{tr}Save{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-secondary" name="save" value="{tr}Save{/tr}">
</div>
</div>
</form>
......@@ -103,13 +97,7 @@ potato,,vegetable
</div>
<div class="form-group row">
<div class="col-sm-3 col-sm-offset-3">
<input
type="submit"
class="btn btn-secondary"
name="import"
value="{tr}Upload{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-secondary" name="import" value="{tr}Upload{/tr}">
</div>
</div>
</form>
......@@ -204,13 +192,7 @@ potato,,vegetable
{/foreach}
</select>
<span class="input-group-append">
<input
type="submit"
class="btn btn-primary"
name="move_to"
value="{tr}OK{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary" name="move_to" value="{tr}OK{/tr}">
</span>
</div>
</div>
......@@ -230,13 +212,7 @@ potato,,vegetable
{/foreach}
</select>
<span class="input-group-append">
<input
type="submit"
class="btn btn-primary"
name="copy_from"
value="{tr}OK{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary" name="copy_from" value="{tr}OK{/tr}">
</span>
</div>
</div>
......@@ -361,7 +337,6 @@ $("#add_object_type").change(function () {
class="btn btn-primary"
name="addpage"
value="{tr}Add{/tr}"
onclick="checkTimeout()"
>
</div>
</div>
......@@ -387,7 +362,6 @@ $("#add_object_type").change(function () {
class="btn btn-primary"
name="addarticle"
value="{tr}Add{/tr}"
onclick="checkTimeout()"
>
</span>
</div>
......@@ -413,7 +387,6 @@ $("#add_object_type").change(function () {
class="btn btn-primary"
name="addblog"
value="{tr}Add{/tr}"
onclick="checkTimeout()"
>
</span>
</div>
......@@ -439,7 +412,6 @@ $("#add_object_type").change(function () {
class="btn btn-primary"
name="adddirectory"
value="{tr}Add{/tr}"
onclick="checkTimeout()"
>
</span>
</div>
......@@ -465,7 +437,6 @@ $("#add_object_type").change(function () {
class="btn btn-primary"
name="addgallery"
value="{tr}Add{/tr}"
onclick="checkTimeout()"
>
</span>
</div>
......@@ -491,7 +462,6 @@ $("#add_object_type").change(function () {
class="btn btn-primary"
name="addfilegallery"
value="{tr}Add{/tr}"
onclick="checkTimeout()"
>
</span>
</div>
......@@ -517,7 +487,6 @@ $("#add_object_type").change(function () {
class="btn btn-primary"
name="addforum"
value="{tr}Add{/tr}"
onclick="checkTimeout()"
>
</span>
</div>
......@@ -543,7 +512,6 @@ $("#add_object_type").change(function () {
class="btn btn-primary"
name="addpoll"
value="{tr}Add{/tr}"
onclick="checkTimeout()"
>
</span>
</div>
......@@ -569,7 +537,6 @@ $("#add_object_type").change(function () {
class="btn btn-primary"
name="addfaq"
value="{tr}Add{/tr}"
onclick="checkTimeout()"
>
</span>
</div>
......@@ -595,7 +562,6 @@ $("#add_object_type").change(function () {
class="btn btn-primary"
name="addtracker"
value="{tr}Add{/tr}"
onclick="checkTimeout()"
>
</span>
</div>
......@@ -621,7 +587,6 @@ $("#add_object_type").change(function () {
class="btn btn-primary"
name="addquiz"
value="{tr}Add{/tr}"
onclick="checkTimeout()"
>
</span>
</div>
......
......@@ -228,13 +228,7 @@
</div>
<div class="form-group text-center">
<input type="submit" name="preview" class="btn btn-primary" value="{tr}Preview{/tr}" onclick="needToConfirm=false;">
<input
type="submit"
name="save"
class="btn btn-secondary"
value="{tr}Save{/tr}"
onclick="checkTimeout()"
>
<input type="submit" name="save" class="btn btn-secondary" value="{tr}Save{/tr}">
</div>
{jq}
......
......@@ -20,7 +20,7 @@
</div>
</div>
<div class="form-group text-center">
<input type="submit" class="btn btn-primary btn-sm" name="replace" value="{tr}Save{/tr}" onclick="checkTimeout()">
<input type="submit" class="btn btn-primary btn-sm" name="replace" value="{tr}Save{/tr}">
</div>
</form>
{/if}
......@@ -77,7 +77,7 @@
</div>
</div>
<div class="form-group text-center">
<input type="submit" class="btn btn-primary" name="setting" value="{tr}Save{/tr}" onclick="checkTimeout()">
<input type="submit" class="btn btn-primary" name="setting" value="{tr}Save{/tr}">
</div>
</form>
......@@ -99,7 +99,7 @@
</div>
</div>
<div class="form-group text-center">
<input type="submit" class="btn btn-primary" name="add" value="{tr}Add{/tr}" onclick="checkTimeout()">
<input type="submit" class="btn btn-primary" name="add" value="{tr}Add{/tr}">
</div>
</form>
<h2>{tr}List of contributions{/tr}</h2>
......
......@@ -15,7 +15,7 @@
</div>
</div>
<div class="form-group text-center">
<input type="submit" class="btn btn-primary" name="save" value="{tr}Save{/tr}" onclick="checkTimeout()">
<input type="submit" class="btn btn-primary" name="save" value="{tr}Save{/tr}">
</div>
</form>
......@@ -30,13 +30,7 @@
</div>
</div>
<div class="form-group text-center">
<input
type="submit"
class="btn btn-primary btn-sm"
name="upload"
value="{tr}Upload{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary btn-sm" name="upload" value="{tr}Upload{/tr}">
</div>
</form>
......
......@@ -21,7 +21,7 @@
</div>
</div>
<div class="form-group text-center">
<input type="submit" class="btn btn-primary" name="save" value="{tr}Save{/tr}" onclick="checkTimeout()">
<input type="submit" class="btn btn-primary" name="save" value="{tr}Save{/tr}">
</div>
</form>
<h2>{tr}DSN{/tr}</h2>
......
......@@ -32,7 +32,7 @@
</div>
</div>
<div class="form-group text-center">
<input type="submit" class="btn btn-primary" name="save" value="{tr}Save{/tr}" onclick="checkTimeout()">
<input type="submit" class="btn btn-primary" name="save" value="{tr}Save{/tr}">
</div>
</form>
......
......@@ -95,7 +95,7 @@
{ticket}
<input type="hidden" name="lock" value="n">
<input type="hidden" name="forumId" value="{$channels[user].forumId|escape:'attr'}">
<button type="submit" class="btn btn-link link-list" onclick="checkTimeout()">
<button type="submit" class="btn btn-link link-list">
{icon name='unlock'} {tr}Unlock{/tr}
</button>
</form>
......@@ -106,7 +106,7 @@
{ticket}
<input type="hidden" name="lock" value="y">
<input type="hidden" name="forumId" value="{$channels[user].forumId|escape:'attr'}">
<button type="submit" class="btn btn-link link-list" onclick="checkTimeout()">
<button type="submit" class="btn btn-link link-list">
{icon name='lock'} {tr}Lock{/tr}
</button>
</form>
......@@ -594,13 +594,7 @@
</fieldset>
<div class="text-center">
<input
type="submit"
class="btn btn-secondary"
name="save"
value="{tr}Save{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-secondary" name="save" value="{tr}Save{/tr}">
</div>
</form>
......@@ -643,13 +637,7 @@
</div>
</div>
<div class="text-center">
<input
type="submit"
class="btn btn-primary"
name="duplicate"
value="{tr}Duplicate{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary" name="duplicate" value="{tr}Duplicate{/tr}">
</div>
</form>
{/if}
......
......@@ -21,7 +21,7 @@
<div class="form-group row">
<label class="col-sm-3 col-form-label"></label>
<div class="col-sm-7 col-sm-offset-1">
<input type="submit" class="btn btn-primary" name="add" value="{tr}Add{/tr}" onclick="checkTimeout()">
<input type="submit" class="btn btn-primary" name="add" value="{tr}Add{/tr}">
</div>
</div>
</form>
......
......@@ -34,7 +34,7 @@
<div class="form-group row">
<div class="col-sm-3"></div>
<div class="col-sm-7 col-sm-offset-1 mb-3">
<input type="submit" class="btn btn-primary" name="save" value="{tr}Save{/tr}" onclick="checkTimeout()">
<input type="submit" class="btn btn-primary" name="save" value="{tr}Save{/tr}">
</div>
</div>
</form>
......@@ -81,13 +81,7 @@
<div class="form-group row">
<div class="col-sm-3"></div>
<div class="col-sm-7 col-sm-offset-2">
<input
type="submit"
class="btn btn-primary btn-sm"
name="editmany"
value="{tr}Mass update{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary btn-sm" name="editmany" value="{tr}Mass update{/tr}">
</div>
</div>
</form>
......
......@@ -69,7 +69,7 @@
<div class="col-sm-3"></div>
<div class="col-sm-7 col-sm-offset-1 mb-3">
<input type="submit" class="btn btn-secondary" name="preview" value="{tr}Preview{/tr}">
<input type="submit" class="btn btn-primary" name="save" value="{tr}Save{/tr}" onclick="checkTimeout()">
<input type="submit" class="btn btn-primary" name="save" value="{tr}Save{/tr}">
</div>
</div>
</form>
......
......@@ -139,21 +139,9 @@
{if isset($ruleinfo.id) && $ruleinfo.id && !$ruleinfo.error}
<input type="hidden" name="rule" value="{$ruleinfo.id|escape}">
<input type="hidden" name="editrule" value="1">
<input
type="submit"
class="btn btn-secondary"
name="save"
value="{tr}Save{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-secondary" name="save" value="{tr}Save{/tr}">
{else}
<input
type="submit"
class="btn btn-secondary"
name="new_rule"
value="{tr}Add{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-secondary" name="new_rule" value="{tr}Add{/tr}">
{/if}
</div>
</div>
......
......@@ -11,13 +11,7 @@
<div class="input-group col-sm-7 col-sm-offset-1 mb-3">
<input name="new_keywords" size="65" value="{$edit_keywords|escape}" class="form-control">
<div class="input-group-append">
<input
type="submit"
class="btn btn-primary"
name="save_keywords"
value="{tr}Save{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary" name="save_keywords" value="{tr}Save{/tr}">
</div>
</div>
</div>
......
......@@ -96,13 +96,7 @@
<div class="form-group row">
<label class="col-sm-3 col-form-label"></label>
<div class="col-sm-7 col-sm-offset-1 mb-3">
<input
type="submit"
class="btn btn-primary btn-sm"
name="add"
value="{tr}Save{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary btn-sm" name="add" value="{tr}Save{/tr}">
</div>
</div>
</form>
......@@ -103,7 +103,6 @@
name="modup"
value="{$module.moduleId}"
class="btn btn-link link-list"
onclick="checkTimeout()"
>
{icon name="up"} {tr}Move up{/tr}
</button>
......@@ -119,7 +118,6 @@
name="moddown"
value="{$module.moduleId}"
class="btn btn-link link-list"
onclick="checkTimeout()"
>
{icon name="down"} {tr}Move down{/tr}
</button>
......@@ -139,7 +137,6 @@
name="unassign"
value="{$module.moduleId}"
class="btn btn-link link-list"
onclick="checkTimeout()"
>
{icon name="remove"} {tr}Unassign{/tr}
</button>
......@@ -415,7 +412,7 @@
<div class="form-group row">
<label class="col-sm-2 col-form-label"></label>
<div class="col-sm-9">
<input type="submit" class="btn btn-secondary" name="um_update" value="{if empty($um_name)}{tr}Create{/tr}{else}{tr}Save{/tr}{/if}" onclick="checkTimeout()">
<input type="submit" class="btn btn-secondary" name="um_update" value="{if empty($um_name)}{tr}Create{/tr}{else}{tr}Save{/tr}{/if}">
</div>
</div>
</form>
......