details:   https://code.openbravo.com/erp/devel/pi/rev/f586c319295c
changeset: 19772:f586c319295c
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Thu Feb 21 14:58:20 2013 +0100
summary:   Related to issue 19728: Do more JS code formatting

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/calendar/ob-calendar.js
 |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 607c7929ee14 -r f586c319295c 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/calendar/ob-calendar.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/calendar/ob-calendar.js
  Thu Feb 21 14:54:23 2013 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/calendar/ob-calendar.js
  Thu Feb 21 14:58:20 2013 +0100
@@ -243,8 +243,8 @@
   eventMoved: function (newDate, event) {
     newDate.setSeconds(0);
     if (this.showEventDialogOnEventMove) {
+      //Event duration
       var dateDiff = event[this.endDateField] - event[this.startDateField],
-           //Event duration
           newEndDate = newDate.getTime() + dateDiff; //Add the event duration 
to the new startDate
       newEndDate = new Date(newEndDate);
       this.eventDialog.event = event;
@@ -268,8 +268,7 @@
       try {
         //To avoid js error due to conflicts with Smartclient default 
EventDialog
         this.eventDialog.show();
-      } catch (e) {
-      }
+      } catch (e) {}
       return false;
     } else {
       return this.Super('eventRemoveClick', arguments);

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to