Permalink
Browse files

Enable auto protocol chen adding check in the dashboard.

Closes #2
  • Loading branch information...
fzaninotto committed Apr 10, 2012
1 parent 605f2ac commit 919808cedc5f5885b325b3b832e152fa6b2619db
Showing with 10 additions and 0 deletions.
  1. +4 −0 CHANGELOG.md
  2. +6 −0 app/dashboard/views/_check_details.ejs
View
@@ -1,6 +1,10 @@
Uptime Changelog
================
+To be released, V1.2
+--------------------
+* Fixed failure to add check in the dashboard when the protocol wasn't set
+
2012-04-10, v1.1
----------------
@@ -75,6 +75,12 @@ $(document).ready(function() {
});
updatePollingIntervalTooltip();
$(intervalFieldSelector).bind('keypress keyup', updatePollingIntervalTooltip);
+ $('#check_form input[name*="url"]').blur(function() {
+ var field = $(this);
+ if (field.val().indexOf('://') == -1) {
+ field.val('http://' + field.val());
+ }
+ });
var tagLinks = [];
$('#check_form input[name*="tags"]').val().split(', ').forEach(function(tag) {
if (tag) tagLinks.push('<a href="/dashboard/tag/' + tag + '">' + tag + '</a>');

0 comments on commit 919808c

Please sign in to comment.