If too many mobile specific items start appearing, maybe
add a mobile specific includeJSVars() method.
data = data.response;
$("#daycontent ul").detach();
$("#todayheader").html(KronolithMobile.currentDate.toString(Kronolith.conf.date_format));
+
var list = $('<ul>').attr({ 'data-role': 'listview' });
var type = data.cal.split('|')[0], cal = data.cal.split('|')[1];
if (data.events) {
list.append(item.append(a));
});
});
- list.listview();
- $("#daycontent").append(list);
+ } else {
+ list.append($('<li>').append(Kronolith.text.noevents));
}
+ list.listview();
+ $("#daycontent").append(list);
},
loadEvent: function(cal, idy, d)
'wrong_date_format' => sprintf(_("You used an unknown date format \"%s\". Please try something like \"%s\"."), '#{wrong}', '#{right}'),
'wrong_time_format' => sprintf(_("You used an unknown time format \"%s\". Please try something like \"%s\"."), '#{wrong}', '#{right}'),
'fix_form_values' => _("Please enter correct values in the form first."),
+ 'noevents' => _("No events to display"),
);
for ($i = 1; $i <= 12; ++$i) {
$code['text']['month'][$i - 1] = Horde_Nls::getLangInfo(constant('MON_' . $i));