summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2023-11-25 12:06:25 -0500
committerspiderr <spiderr@bitweaver.org>2023-11-25 12:06:25 -0500
commit79fea38135f8b4f14d45655d7d98f39b55901009 (patch)
tree1471bbb5f17d8338c5accd0f5b24fe9267fae452
parent0f658d25f0f65864b0b94731acaa499a5b50b60e (diff)
downloadusers-79fea38135f8b4f14d45655d7d98f39b55901009.tar.gz
users-79fea38135f8b4f14d45655d7d98f39b55901009.tar.bz2
users-79fea38135f8b4f14d45655d7d98f39b55901009.zip
w3c cleanup: The type attribute is unnecessary for JavaScript resources.
-rw-r--r--templates/captcha.tpl2
-rw-r--r--templates/edit_personal_page.tpl2
-rw-r--r--templates/login_inc.tpl2
-rw-r--r--templates/my_images.tpl2
-rw-r--r--templates/register.tpl2
-rw-r--r--templates/role_register.tpl2
-rw-r--r--templates/user_favs_service_icon_inc.tpl2
7 files changed, 7 insertions, 7 deletions
diff --git a/templates/captcha.tpl b/templates/captcha.tpl
index 6434dda..8c59d85 100644
--- a/templates/captcha.tpl
+++ b/templates/captcha.tpl
@@ -1,6 +1,6 @@
{if $gBitSystem->isFeatureActive('users_random_number_reg')}
{literal}
- <script type="text/javascript"> /* <![CDATA[ */
+ <script> /* <![CDATA[ */
function reloadImage() {
element = document.getElementById('captcha_img');
if (element) {
diff --git a/templates/edit_personal_page.tpl b/templates/edit_personal_page.tpl
index e7883d8..5c8cfbb 100644
--- a/templates/edit_personal_page.tpl
+++ b/templates/edit_personal_page.tpl
@@ -19,7 +19,7 @@
{* Check to see if there is an editing conflict *}
{if $errors.edit_conflict}
- <script type="text/javascript">/* <![CDATA[ */
+ <script>/* <![CDATA[ */
alert( "{$errors.edit_conflict|strip_tags}" );
/* ]]> */</script>
{formfeedback warning=$errors.edit_conflict}
diff --git a/templates/login_inc.tpl b/templates/login_inc.tpl
index 9dc33c6..32016b2 100644
--- a/templates/login_inc.tpl
+++ b/templates/login_inc.tpl
@@ -55,7 +55,7 @@
</div>
{/form}
-<script type="text/javascript">
+<script>
document.getElementById("user").focus();
</script>
{/strip}
diff --git a/templates/my_images.tpl b/templates/my_images.tpl
index e804a74..1e5da2c 100644
--- a/templates/my_images.tpl
+++ b/templates/my_images.tpl
@@ -76,7 +76,7 @@
{* this javascript MUST go after the picform above! xoxo spider *}
{literal}
-<script type="text/javascript">/* <![CDATA[ */
+<script>/* <![CDATA[ */
function showHideAvatar() {
var viz;
if( document.getElementById( "user_auto_avatar" ).checked ) {
diff --git a/templates/register.tpl b/templates/register.tpl
index 25c1cde..bab430c 100644
--- a/templates/register.tpl
+++ b/templates/register.tpl
@@ -48,7 +48,7 @@
{formhelp note="This will be used in links to your profile. Your username can only contain numbers, characters, and underscores."}
<div class="alert alert-info nomargin" id="loginurl">{$smarty.const.BIT_ROOT_URI}</div>
{/forminput}
- <script type="text/javascript">/* <![CDATA[ */ {literal}
+ <script>/* <![CDATA[ */ {literal}
BitUser = {
"updateUserUrl": function(){
var loginEle = document.getElementById('login');
diff --git a/templates/role_register.tpl b/templates/role_register.tpl
index a0d5676..50fddca 100644
--- a/templates/role_register.tpl
+++ b/templates/role_register.tpl
@@ -63,7 +63,7 @@
{formhelp note="This will be used in links to your profile. Your username can only contain numbers, characters, and underscores."}
<div class="formfeedback" id="loginurl"></div>
{/forminput}
- <script type="text/javascript">/* <![CDATA[ */ {literal}
+ <script>/* <![CDATA[ */ {literal}
BitUser = {
"updateUserUrl": function(){
var loginEle = document.getElementById('login');
diff --git a/templates/user_favs_service_icon_inc.tpl b/templates/user_favs_service_icon_inc.tpl
index c986d23..ee6dce4 100644
--- a/templates/user_favs_service_icon_inc.tpl
+++ b/templates/user_favs_service_icon_inc.tpl
@@ -13,7 +13,7 @@
{booticon iname="fa-bookmark" ipackage="icons" iexplain="Bookmark"}
{/if}
</a>
- <script type="text/javascript">/* <![CDATA[ */
+ <script>/* <![CDATA[ */
if( typeof( BitUser ) == 'undefined' ){ldelim} BitUser = {ldelim}{rdelim} {rdelim};
BitUser.bookmarkUrl = "{$smarty.const.USERS_PKG_URL}bookmark.php";
BitUser.isBookmarked = {$isBookmarked};