From 00397100c2de28a9fc06522939616bd7e1003d54 Mon Sep 17 00:00:00 2001 From: alberto Date: Wed, 6 Jun 2012 09:59:24 +0200 Subject: [PATCH] Bug fix room type list -fixed empty roomtype list in room management --- webroot/js/views/planner.js | 3 ++- webroot/js/views/room.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/webroot/js/views/planner.js b/webroot/js/views/planner.js index 221f77c1..1e62468c 100644 --- a/webroot/js/views/planner.js +++ b/webroot/js/views/planner.js @@ -118,6 +118,7 @@ $(function () { }, height: function () { return $(".wc-time-slots").height() + 140; + //uncomment following line if you want a scroll activation. //return $(window).height() - $("h1").outerHeight() - 1; }, eventRender: function (calEvent, $event) { @@ -132,7 +133,7 @@ $(function () { }, calendarAfterLoad : function(calendar) { - // $('.wc-scrollable-grid').jScrollPane(); + //nothing }, draggable: function (calEvent, $event) { return calEvent.readOnly != true; diff --git a/webroot/js/views/room.js b/webroot/js/views/room.js index c169e74e..d4368a53 100644 --- a/webroot/js/views/room.js +++ b/webroot/js/views/room.js @@ -35,6 +35,8 @@ this.roomTypes.fetch({ success: function() { self.initializeRoomTypes(); + // render again if success is called after render method. + self.render(); }, }); this.facilitiesListView = new FacilitiesListView({