Permalink
Browse files

gallery-2012.08.08-20-03 mzgupta gallery-querybuilder-extras

  • Loading branch information...
1 parent e441bf7 commit bb578567d441a38ee341dd8575b6e936f8bb0d56 YUI Builder committed Aug 8, 2012
Showing with 11 additions and 2 deletions.
  1. +11 −2 src/gallery-querybuilder-extras/js/querybuilder-extras.js
@@ -67,10 +67,19 @@ Y.QueryBuilder.Calendar.prototype = {
this._createDateRangeCalendar(var_config);
// Input box one for first calendar
+ var dt_value1 = value[1] || var_config.start_date;
+ var dt_value2 = value[2] || var_config.end_date;
+ if(value[2]){
+ visible = true;
+ }
+ else {
+ visible = op_list[0].multipleValue;
+ }
+
value_cell1 = this._createCellValue(query_index, var_config, op_list,
- value, var_config.start_date, true, 0);
+ value, dt_value1, true, 0);
value_cell2 = this._createCellValue(query_index, var_config, op_list,
- value, var_config.end_date, op_list[0].multipleValue, 1);
+ value, dt_value2, visible, 1);
var self = this;
this.op_menu.on('change', function() {

0 comments on commit bb57856

Please sign in to comment.