aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-11-26 21:00:04 +0100
committerMario Vavti <mario@mariovavti.com>2015-11-26 21:00:04 +0100
commit5cb71fa5da219e97a4c105c6025ff9b79553a38c (patch)
treeb84d7d3d9c40f2c0ae9f1a53f25acca1f4598cd4
parent55d00243fbf976c3eb16203a97716dfbc9233156 (diff)
downloadvolse-hubzilla-5cb71fa5da219e97a4c105c6025ff9b79553a38c.tar.gz
volse-hubzilla-5cb71fa5da219e97a4c105c6025ff9b79553a38c.tar.bz2
volse-hubzilla-5cb71fa5da219e97a4c105c6025ff9b79553a38c.zip
default timepicker to 15 min steps. abbr -> span
-rw-r--r--include/datetime.php2
-rwxr-xr-xview/tpl/event_head.tpl6
2 files changed, 4 insertions, 4 deletions
diff --git a/include/datetime.php b/include/datetime.php
index f7df70a36..1d10e7ad7 100644
--- a/include/datetime.php
+++ b/include/datetime.php
@@ -235,7 +235,7 @@ function datetimesel($format, $min, $max, $default, $label, $id = 'datetimepicke
$o .= replace_macros($tpl,array(
'$field' => array($id, $label, $input_text, (($required) ? t('Required') : ''), (($required) ? '*' : ''), 'placeholder="' . $readable_format . '"'),
));
- $o .= "<script>\$(function () {var picker = \$('#id_$id').datetimepicker({step:5,format:'$dateformat' $minjs $maxjs $pickers $defaultdatejs,dayOfWeekStart:$first_day}); $extra_js})</script>";
+ $o .= "<script>\$(function () {var picker = \$('#id_$id').datetimepicker({step:15,format:'$dateformat' $minjs $maxjs $pickers $defaultdatejs,dayOfWeekStart:$first_day}); $extra_js})</script>";
return $o;
}
diff --git a/view/tpl/event_head.tpl b/view/tpl/event_head.tpl
index fcd0f0df1..f587d69a0 100755
--- a/view/tpl/event_head.tpl
+++ b/view/tpl/event_head.tpl
@@ -71,7 +71,7 @@
switch(view.name){
case "month":
element.find(".fc-title").html(
- "<img src='{0}' style='height:12px;width:12px;' title='{1}'>&nbsp;<abbr title='{3}\r\n\r\n{4}'>{2}</abbr>".format(
+ "<img src='{0}' style='height:12px;width:12px;' title='{1}'>&nbsp;<span title='{3}\r\n\r\n{4}'>{2}</span>".format(
event.item['author']['xchan_photo_s'],
event.item['author']['xchan_name'],
event.title,
@@ -81,7 +81,7 @@
break;
case "agendaWeek":
element.find(".fc-title").html(
- "<img src='{0}' style='height:12px;width:12px;'>&nbsp;{1}: <abbr title='{3}\r\n\r\n{4}'>{2}</abbr>".format(
+ "<img src='{0}' style='height:12px;width:12px;'>&nbsp;{1}: <span title='{3}\r\n\r\n{4}'>{2}</span>".format(
event.item['author']['xchan_photo_s'],
event.item['author']['xchan_name'],
event.title,
@@ -91,7 +91,7 @@
break;
case "agendaDay":
element.find(".fc-title").html(
- "<img src='{0}' style='height:12px;width:12px;'>&nbsp;{1}: <abbr title='{3}\r\n\r\n{4}'>{2}</abbr>".format(
+ "<img src='{0}' style='height:12px;width:12px;'>&nbsp;{1}: <span title='{3}\r\n\r\n{4}'>{2}</span>".format(
event.item['author']['xchan_photo_s'],
event.item['author']['xchan_name'],
event.title,