Commit f7ebfdce authored by lindonb's avatar lindonb

[REF] admin: Remove unneeded checkTimeout() onclick method calls in the admin...

[REF] admin: Remove unneeded checkTimeout() onclick method calls in the admin panel section. checkTimeout() will generally only be needed where forms are on popups
parent 24926641
Pipeline #50007563 failed with stages
in 35 minutes and 7 seconds
......@@ -34,12 +34,7 @@
{/foreach}
<li class="dropdown-item">
<div class="text-center">
<input
type="submit"
value="{tr}Set as my default{/tr}"
class="btn btn-primary btn-sm"
onclick="checkTimeout()"
>
<input type="submit" value="{tr}Set as my default{/tr}" class="btn btn-primary btn-sm">
</div>
</li>
{if $prefs.connect_feature eq "y"}
......@@ -162,13 +157,7 @@
{/foreach}
</div>
<div class="card-footer text-center">
<input
class="btn btn-primary"
type="submit"
title="{tr}Apply Changes{/tr}"
value="{tr}Apply{/tr}"
onclick="checkTimeout()"
>
<input class="btn btn-primary" type="submit" title="{tr}Apply Changes{/tr}" value="{tr}Apply{/tr}">
</div>
<input type="hidden" name="lm_criteria" value="{$lm_criteria|escape}">
{ticket}
......
......@@ -15,7 +15,6 @@
class="btn btn-primary tips"
title=":{$applyTitle|escape:'attr'}"
value="{$applyValue|escape:'attr'}"
onclick="checkTimeout()"
>
</div>
</div>
......
......@@ -12,6 +12,5 @@
class="btn btn-primary tips"
title=":{$applyTitle|escape:'attr'}"
value="{$applyValue|escape:'attr'}"
onclick="checkTimeout()"
>
</div>
......@@ -96,13 +96,7 @@
<input type="file" name="csvlist" id="csvlist">
<span class="form-text">{tr}File format: title,authorName,heading,body,lang,user{/tr}....</span>
<div align="center">
<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>
</div>
......
......@@ -63,13 +63,7 @@
<div class="form-group row">
<div class="col-sm-8 col-sm-offset-4">
{if !empty($prefs.category_defaults)}
<button
type="submit"
class="btn btn-primary"
name="assignWikiCategories"
value="y"
onclick="checkTimeout()"
>
<button type="submit" class="btn btn-primary" name="assignWikiCategories" value="y">
{tr}Re-apply last saved category defaults to wiki pages{/tr}
</button>
{/if}
......
......@@ -69,7 +69,7 @@
<div class="adminoptionboxchild" id="connect_feature_childcontainer">
<div class="form-group row">
<div class="col-sm-offset-4 col-sm-8">
{button _script="#" class="btn btn-primary" _text="{tr}Send Info{/tr}" _title="{tr}Send the data{/tr}" _id="connect_send_btn" _onclick="checkTimeout()"}
{button _script="#" class="btn btn-primary" _text="{tr}Send Info{/tr}" _title="{tr}Send the data{/tr}" _id="connect_send_btn"}
{button _script="#" class="btn btn-primary" _text="{tr}Preview info{/tr}" _title="{tr}See what is going to be sent{/tr}" _id="connect_list_btn"}
{if empty($prefs.connect_site_title)}
{button _text="{tr}Fill form{/tr}" class="btn btn-primary" _title="{tr}Fill this form in based on other preferences{/tr}" _id="connect_defaults_btn" _script="#"}
......
......@@ -33,27 +33,13 @@
<div class="adminoptionboxchild fgal_use_db_childcontainer n">
<div class="mb-sm-3">
{preference name='fgal_use_dir'}
<button
role="button"
type="submit"
class="btn btn-primary"
name="move"
value="to_fs"
onclick="checkTimeout()"
>
<button role="button" type="submit" class="btn btn-primary" name="move" value="to_fs">
{tr}Move files from database to directory{/tr}
</button>
</div>
</div>
<div class="col-sm-8 col-sm-offset-4 mb-sm-3 adminoptionchild fgal_use_db_childcontainer y">
<button
role="button"
type="submit"
class="btn btn-primary"
name="move"
value="to_db"
onclick="checkTimeout()"
>
<button role="button" type="submit" class="btn btn-primary" name="move" value="to_db">
{tr}Move files from directory to database{/tr}
</button>
</div>
......@@ -100,7 +86,6 @@
name="updateMime"
id="updateMime"
value="{tr}Update mime of all non archived octet-stream files{/tr}"
onclick="checkTimeout()"
>
</div>
......@@ -279,7 +264,6 @@
class="btn btn-primary btn-sm"
name="filegalfixvndmsfiles"
value="{tr}Fix vnd.ms-* mime type files{/tr}"
onclick="checkTimeout()"
/>
{/remarksbox}
</div>
......@@ -326,7 +310,6 @@
class="btn btn-primary btn-sm"
name="filegalredosearch"
value="{tr}Reindex all files for search{/tr}"
onclick="checkTimeout()"
>
</div>
</div>
......
......@@ -9,7 +9,7 @@
{icon name="language"} {tr}Translate Tags{/tr}
</a>
{/if}
<button role="button" type="submit" class="btn btn-primary" name="cleanup" onclick="checkTimeout()">
<button role="button" type="submit" class="btn btn-primary" name="cleanup">
{icon name="trash"} {tr}Cleanup unused tags{/tr}
</button>
{include file='admin/include_apply_top.tpl'}
......
......@@ -21,7 +21,6 @@
name="galfeatures"
title=":{tr}Apply changes{/tr}"
value="{tr}Apply{/tr}"
onclick="checkTimeout()"
>
</div>
</div>
......@@ -90,7 +89,6 @@
name="galfeatures"
title=":{tr}Apply Changes{/tr}"
value="{tr}Apply{/tr}"
onclick="checkTimeout()"
>
</div>
</form>
......@@ -153,7 +151,6 @@
form="galmove"
name="mvimg"
value="{$value}"
onclick="checkTimeout()"
>
{tr}Move{/tr}
</button>
......
......@@ -503,7 +503,6 @@
value="{tr}Create or Replace Word Index{/tr}"
name="uploadIndex"
class="btn btn-primary btn-sm"
onclick="checkTimeout()"
>
{help desc="Text files with one word per line accepted.
The word list will be converted to all lowe case. Duplicate entries will be removed.
......@@ -538,7 +537,6 @@
value="{tr}Save & Set as Default{/tr}"
name="saveblacklist"
class="btn btn-primary btn-sm"
onclick="checkTimeout()"
>
<input
type="submit"
......
......@@ -267,7 +267,7 @@
{preference name=profile_sources}
{preference name=profile_channels}
<div class="text-center submit">
<input type="submit" class="btn btn-primary" name="config" value="{tr}Save{/tr}" onclick="checkTimeout()"/>
<input type="submit" class="btn btn-primary" name="config" value="{tr}Save{/tr}"/>
</div>
</form>
</fieldset>
......@@ -302,13 +302,7 @@
</div>
</div>
<div align="center" style="padding:1em;">
<input
type="submit"
class="btn btn-primary"
name="test"
value="{tr}Test{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary" name="test" value="{tr}Test{/tr}">
</div>
</form>
</fieldset>
......
......@@ -121,13 +121,7 @@
</div>
<div class="form-group text-center">
<div class="col-sm-12"><br>
<input
type="submit"
class="btn btn-primary btn-sm"
name="edit"
value="{tr}Save{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary btn-sm" name="edit" value="{tr}Save{/tr}">
</div>
</div>
</fieldset>
......@@ -144,13 +138,7 @@
<div class="input-group">
<input type="text" class="form-control" name="name" id="rating_config_new">
<span class="input-group-prepend">
<input
type="submit"
class="btn btn-primary"
name="create"
value="{tr}Create{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary" name="create" value="{tr}Create{/tr}">
</span>
</div>
</div>
......
......@@ -35,19 +35,12 @@
</table>
<p>
<input type="submit" class="btn btn-primary btn-sm" name="list" value="{tr}Show Usage{/tr}">
<input
type="submit"
class="btn btn-danger btn-sm"
name="remove"
value="{tr}Delete{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-danger btn-sm" name="remove" value="{tr}Delete{/tr}">
<input
type="submit"
class="btn btn-danger btn-sm"
name="removeclean"
value="{tr}Delete &amp; Unreference{/tr}"
onclick="checkTimeout()"
>
</p>
</form>
......@@ -75,13 +68,7 @@
</div>
<div>
<input type="hidden" name="token" value="{$selected_token|escape}">
<input
type="submit"
class="btn btn-primary btn-sm"
name="save"
value="{tr}Save{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary btn-sm" name="save" value="{tr}Save{/tr}">
</div>
</form>
{/if}
......@@ -103,27 +90,9 @@
<input type="hidden" name="select[]" value="{$token|escape}">
<input type="hidden" name="token" value="{$token|escape}">
<input type="submit" name="list" value="{tr}Show Usage{/tr}" class="btn btn-default">
<input
type="submit"
name="create"
value="{tr}Create{/tr}"
class="btn btn-primary"
onclick="checkTimeout()"
>
<input
type="submit"
name="rename"
value="{tr}Fix{/tr}"
class="btn btn-primary"
onclick="checkTimeout()"
>
<input
type="submit"
name="clean"
value="{tr}Remove{/tr}"
class="btn btn-primary"
onclick="checkTimeout()"
>
<input type="submit" name="create" value="{tr}Create{/tr}" class="btn btn-primary">
<input type="submit" name="rename" value="{tr}Fix{/tr}" class="btn btn-primary">
<input type="submit" name="clean" value="{tr}Remove{/tr}" class="btn btn-primary">
</div>
</form>
</td>
......@@ -139,13 +108,7 @@
</div>
<div>
<input type="hidden" name="oldName" value="{$rename|escape}">
<input
type="submit"
class="btn btn-primary btn-sm"
name="save"
value="{tr}Fix{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary btn-sm" name="save" value="{tr}Fix{/tr}">
</div>
</form>
{/if}
......
......@@ -312,14 +312,12 @@
class="btn btn-primary btn-sm"
name="enable"
value="{tr}Enable Plugins{/tr}"
onclick="checkTimeout()"
>
<input
type="submit"
class="btn btn-primary btn-sm"
name="delete"
value="{tr}Delete Plugins{/tr}"
onclick="checkTimeout()"
>
</div>
{remarksbox type="tip" title="{tr}Tip{/tr}"}
......
......@@ -126,7 +126,6 @@
name="trkset"
title=":{tr}Apply changes{/tr}"
value="{tr}Apply{/tr}"
onclick="checkTimeout()"
>
</div>
</div>
......@@ -215,7 +214,6 @@
class="btn btn-primary btn-sm"
name="action"
value="{tr}Change all to db{/tr}"
onclick="checkTimeout()"
>
</form>
</td>
......@@ -228,7 +226,6 @@
class="btn btn-primary btn-sm"
name="action"
value="{tr}Change all to file{/tr}"
onclick="checkTimeout()"
>
</form>
</td>
......
......@@ -62,7 +62,7 @@
{$kcwText}
<div class="adminoptionbox">
{tr}You can manually edit these values in lib/videogals/standardTikiKcw.xml{/tr}<br>
{tr}Recreate KCW "uiConf"{/tr} {button _onclick="checkTimeout()" _text="{tr}Update{/tr}" kcw_rebuild=1 _keepall='y' _auto_args='*'}
{tr}Recreate KCW "uiConf"{/tr} {button _text="{tr}Update{/tr}" kcw_rebuild=1 _keepall='y' _auto_args='*'}
</div>
</fieldset>
......
......@@ -380,7 +380,6 @@
class="btn btn-primary btn-sm"
name="createtag"
value="{tr}Create Database Dump{/tr}"
onclick="checkTimeout()"
><br>
<label for="databasetag">{tr}Wiki database{/tr}</label>
<select name="tagname" {if $tags|@count eq '0'} disabled="disabled"{/if}>
......@@ -395,14 +394,12 @@
class="btn btn-primary btn-sm"
name="restoretag"
value="{tr}Restore{/tr}"{if $tags|@count eq '0'} disabled="disabled"{/if}
onclick="checkTimeout()"
>
<input
type="submit"
class="btn btn-default btn-sm"
name="removetag"
value="{tr}Remove{/tr}"{if $tags|@count eq '0'} disabled="disabled"{/if}
onclick="checkTimeout()"
>
</fieldset>
</div>
......
......@@ -68,7 +68,6 @@
class="btn btn-primary btn-sm"
name="action"
value="{tr}Change all to db{/tr}"
onclick="checkTimeout()"
>
</form>
</td>
......@@ -81,7 +80,6 @@
class="btn btn-primary btn-sm"
name="action"
value="{tr}Change all to file{/tr}"
onclick="checkTimeout()"
>
</form>
</td>
......
......@@ -95,13 +95,7 @@
</fieldset>
{remarksbox type="info" title="{tr}Hint{/tr}"}{tr}This tab shows you an overview of categories affected by the areas feature. <br> More help here: <a href="http://doc.tiki.org/Areas" target="tikihelp" class="alert-link">doc.tiki.org/Areas</a> {/tr}{/remarksbox}
<div class="form-group heading input_submit_container" style="text-align: center">
<input
type="submit"
class="btn btn-primary"
name="update_areas"
value="{tr}Update areas{/tr}"
onclick="checkTimeout()"
>
<input type="submit" class="btn btn-primary" name="update_areas" value="{tr}Update areas{/tr}">
</div>
<div class="adminoptionboxchild" id="feature_areas_childcontainer">
{preference name=areas_root}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment