handle event descriptions better; scroll to bottom with events
This commit is contained in:
parent
c8e0ae420e
commit
add13754f5
2 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,6 @@ $action = isset($_GET["action"]) ? $_GET["action"] : "";
|
||||||
if ($action == "insert" || $action == "update") {
|
if ($action == "insert" || $action == "update") {
|
||||||
/* validate the data. */
|
/* validate the data. */
|
||||||
$description = filter_var(trim($_GET["description"], FILTER_SANITIZE_STRING));;
|
$description = filter_var(trim($_GET["description"], FILTER_SANITIZE_STRING));;
|
||||||
$description = htmlspecialchars($description, ENT_QUOTES, 'UTF-8');
|
|
||||||
try {
|
try {
|
||||||
$eventdate = new DateTime($_GET["eventdate"]);
|
$eventdate = new DateTime($_GET["eventdate"]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -156,5 +156,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
</div> <!-- container -->
|
</div> <!-- container -->
|
||||||
</main>
|
</main>
|
||||||
{include file='footer.tpl'}
|
{include file='footer.tpl'}
|
||||||
|
{if isset($action) && $action == "edit"} <script> $(document).ready(function() { $('html, body').animate({ scrollTop: $(document).height() }, 'fast'); }); </script> {/if}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue