Make sure we have a bottom rounded element
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 22 Nov 2010 00:37:25 +0000 (19:37 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 22 Nov 2010 00:37:25 +0000 (19:37 -0500)
kronolith/js/mobile.js

index 3c67070..df7904f 100644 (file)
          loc = false,
          title = $('<div>').addClass('kronolithEventDetailTitle').append($('<h2>').text(e.t)),
          calendar = $('<p>').addClass('kronolithEventDetailCalendar').text(Kronolith.conf.calendars[e.ty][e.c]['name']);
+
+         // Time
          var item = $('<div>');
          if (e.r) {
              var recurText = Kronolith.text.recur.desc[e.r.t][(e.r.i > 1) ? 1 : 0];
            list.append($('<li>').append($('<a>').attr({'rel': 'external', 'href': e.u}).text(e.u)));
          }
 
+         // Ensure we have a bottom li element, to close out the rounded look.
+         if (list.children('li').length == 1) {
+           list.append($('<li>'));
+         }
          list.listview();
 
          return list;