aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-19 20:12:58 -0800
committerzotlabs <mike@macgirvin.com>2018-02-20 17:20:35 -0800
commitce8349662d8c9e309f3faf57114acddb67eb11b7 (patch)
tree850e8299aa79960dbca8aeef9ea9a934dbfb24bb /Zotlabs/Module
parent02575f46a6d288cd2c1168bbbe52be2c7863cb46 (diff)
downloadvolse-hubzilla-ce8349662d8c9e309f3faf57114acddb67eb11b7.tar.gz
volse-hubzilla-ce8349662d8c9e309f3faf57114acddb67eb11b7.tar.bz2
volse-hubzilla-ce8349662d8c9e309f3faf57114acddb67eb11b7.zip
Add 'Validate' button to new_channel page and disable submit until validated. This is to get around the issue that clicking submit without ever focusing and blurring the nickname field won't actually submit the form but only provide validation. It needs to be clicked again to submit. The first click processed the blur but remained on the page with no feedback. If somebody has better workarounds, please provide. The goal is to ensure that the name and the nickname are both validated before we can submit.
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/New_channel.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zotlabs/Module/New_channel.php b/Zotlabs/Module/New_channel.php
index 9f2fea802..548f28c4f 100644
--- a/Zotlabs/Module/New_channel.php
+++ b/Zotlabs/Module/New_channel.php
@@ -142,6 +142,7 @@ class New_channel extends \Zotlabs\Web\Controller {
'$role' => $role,
'$default_role' => $default_role,
'$nickname' => $nickname,
+ '$validate' => t('Validate'),
'$submit' => t('Create'),
'$channel_usage_message' => $channel_usage_message
));