This commit has been accessed 305 times via Git panel.
commit 4b72636d268c915cc14aa50b0469e4f0e57f9a68
tree 197a49df31947570b44574eb474297f05f76b31a
parent 56794c7d158ce3c5fd4ca33f82d7a919634c6ad2
author Magie Antonio <magie@majcms.org> 1307309739 +0800
committer Magie Antonio <magie@majcms.org> 1307309739 +0800
Fix HTML5 form field attributes in edit.php and reg.php
diff --git a/edit.php b/edit.php
index d8c2b35..5bae69a 100644
--- a/edit.php
+++ b/edit.php
@@ -640,7 +640,7 @@ if (file_exists("images/{$_REQUEST['entry']}/album")) {
<tr><td><input required autocomplete="off" class="input_title" type="text" name="title_input" value="<?php
readfile($title_file);
?>"></td></tr>
-<tr><td><textarea class="input_body" name="body_input" rows="15" autofocus required>
+<tr><td><textarea class="input_body" name="body_input" rows="15" required>
<?php
$open_body_file = fopen($body_file, "r");
$read_body_file = fread($open_body_file, filesize($body_file));
diff --git a/reg.php b/reg.php
index e6c31ec..86dc782 100644
--- a/reg.php
+++ b/reg.php
@@ -716,7 +716,7 @@ if (file_exists("data/bb-disclaimer.txt")) {
<tr><td width=100><p>Country</p></td><td colspan=3>
-<select class="input" name="country">
+<select class="input" name="country" required>
<option value=""></option>
<option value="AF">Afghanistan</option>
<option value="AX">Aland (Ahvenanmaa) Islands</option>
tree 197a49df31947570b44574eb474297f05f76b31a
parent 56794c7d158ce3c5fd4ca33f82d7a919634c6ad2
author Magie Antonio <magie@majcms.org> 1307309739 +0800
committer Magie Antonio <magie@majcms.org> 1307309739 +0800
Fix HTML5 form field attributes in edit.php and reg.php
diff --git a/edit.php b/edit.php
index d8c2b35..5bae69a 100644
--- a/edit.php
+++ b/edit.php
@@ -640,7 +640,7 @@ if (file_exists("images/{$_REQUEST['entry']}/album")) {
<tr><td><input required autocomplete="off" class="input_title" type="text" name="title_input" value="<?php
readfile($title_file);
?>"></td></tr>
-<tr><td><textarea class="input_body" name="body_input" rows="15" autofocus required>
+<tr><td><textarea class="input_body" name="body_input" rows="15" required>
<?php
$open_body_file = fopen($body_file, "r");
$read_body_file = fread($open_body_file, filesize($body_file));
diff --git a/reg.php b/reg.php
index e6c31ec..86dc782 100644
--- a/reg.php
+++ b/reg.php
@@ -716,7 +716,7 @@ if (file_exists("data/bb-disclaimer.txt")) {
<tr><td width=100><p>Country</p></td><td colspan=3>
-<select class="input" name="country">
+<select class="input" name="country" required>
<option value=""></option>
<option value="AF">Afghanistan</option>
<option value="AX">Aland (Ahvenanmaa) Islands</option>