[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [14234] validations
From: |
Saul |
Subject: |
[Fmsystem-commits] [14234] validations |
Date: |
Fri, 23 Oct 2015 21:00:21 +0000 |
Revision: 14234
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14234
Author: psaul
Date: 2015-10-23 21:00:20 +0000 (Fri, 23 Oct 2015)
Log Message:
-----------
validations
Modified Paths:
--------------
branches/dev-syncromind/booking/js/booking/schedule.js
Modified: branches/dev-syncromind/booking/js/booking/schedule.js
===================================================================
--- branches/dev-syncromind/booking/js/booking/schedule.js 2015-10-23
20:59:17 UTC (rev 14233)
+++ branches/dev-syncromind/booking/js/booking/schedule.js 2015-10-23
21:00:20 UTC (rev 14234)
@@ -31,7 +31,7 @@
}
var r = [{n: 'ResultSet'},{n: 'Result'}];
// createta d u c r cl
- createTableSchedule(container, url, colDefs, r, "pure-table");
+ createTableSchedule(container, url, colDefs, r, "pure-table",
schedule.state);
};
@@ -101,6 +101,9 @@
_from = _from ? '%20' + _from: '';
_to = _to ? '%20' + _to: '';
var url = schedule.newApplicationUrl;
+ if (!url){
+ return;
+ }
var state = date.getFullYear() + '-' + (date.getMonth()+1) + '-' +
date.getDate();
var day = date.getDay();
var weekday=new Array(7);
@@ -111,7 +114,10 @@
weekday[4]="thursday";
weekday[5]="friday";
weekday[6]="saturday";
- url += '&from_[]=' + state + _from + '&to_[]=' + state + _to +
'&resource=' + resource + '&weekday=' + weekday[day];
+ url += '&from_[]=' + state + _from + '&to_[]=' + state + _to + '&weekday='
+ weekday[day];
+ if (resource){
+ url += '&resource=' + resource;
+ }
window.location.href = url;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [14234] validations,
Saul <=