tryton-sao 6.2.2 → 6.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "tryton-sao",
3
3
  "title": "sao",
4
4
  "description": "Tryton webclient",
5
- "version": "6.2.2",
5
+ "version": "6.2.3",
6
6
  "homepage": "http://www.tryton.org/",
7
7
  "author": {
8
8
  "name": "Tryton"
package/src/action.js CHANGED
@@ -77,7 +77,7 @@
77
77
  var ctx = {
78
78
  active_model: data.model || null,
79
79
  active_id: data.id || null,
80
- active_ids: data.ids
80
+ active_ids: data.ids || [],
81
81
  };
82
82
  ctx = jQuery.extend(ctx, session.context);
83
83
  ctx._user = session.user_id;
package/src/pyson.js CHANGED
@@ -179,7 +179,7 @@
179
179
  'd': value.d,
180
180
  }, context[value.v.substring(0, idx)] || {});
181
181
  }
182
- if (value.v in context) {
182
+ if ((value.v in context) && (context[value.v] !== undefined)) {
183
183
  return context[value.v];
184
184
  } else {
185
185
  return value.d;
package/src/sao.less CHANGED
@@ -47,6 +47,10 @@ button {
47
47
  text-overflow: ellipsis;
48
48
  }
49
49
 
50
+ .input-group > .form-control-feedback {
51
+ z-index: 3;
52
+ }
53
+
50
54
  .navbar-inverse {
51
55
  .close {
52
56
  color: @navbar-inverse-link-color;
@@ -194,7 +198,7 @@ button {
194
198
 
195
199
  html.accesskey {
196
200
 
197
- *[accesskey]+span[data-accesskey]:after,
201
+ *[accesskey] ~ span[data-accesskey]:after,
198
202
  *[accesskey]:after {
199
203
  background-color: @brand-info;
200
204
  color: #fff;
@@ -210,7 +214,7 @@ html.accesskey {
210
214
  background-color: initial;
211
215
  }
212
216
 
213
- *[accesskey]+span[data-accesskey] {
217
+ *[accesskey] ~ span[data-accesskey] {
214
218
  float: right;
215
219
  position: relative;
216
220
 
@@ -226,7 +230,7 @@ html.accesskey {
226
230
  input[accesskey][type="checkbox"],
227
231
  input[accesskey][type="checkbox"],
228
232
  select[accesskey] {
229
- &+span[data-accesskey] {
233
+ & ~ span[data-accesskey] {
230
234
  bottom: 1em;
231
235
  }
232
236
  }
package/src/screen.js CHANGED
@@ -1737,7 +1737,9 @@
1737
1737
  if (props.selection instanceof Array) {
1738
1738
  continue;
1739
1739
  }
1740
+ props = jQuery.extend({}, props);
1740
1741
  props.selection = this.get_selection(props);
1742
+ fields[name] = props;
1741
1743
  }
1742
1744
 
1743
1745
  if ('arch' in view_tree) {
package/src/theme.less CHANGED
@@ -149,6 +149,12 @@ input[type=number],
149
149
  padding: 0 5px;
150
150
  }
151
151
 
152
+ .has-feedback {
153
+ .form-control {
154
+ padding-right: (@input-height-base * 1.25);
155
+ }
156
+ }
157
+
152
158
  .input-group-addon {
153
159
  background-color: transparent;
154
160
  border: transparent;
package/src/view/form.js CHANGED
@@ -112,7 +112,7 @@ function eval_pyson(value){
112
112
  widget.labelled.get(0).tagName)) {
113
113
  jQuery('<span/>', {
114
114
  'data-accesskey': accesskey,
115
- }).insertAfter(widget.labelled);
115
+ }).appendTo(widget.labelled.parent());
116
116
  }
117
117
  label.label_el.attr('for', widget.labelled.attr('id'));
118
118
  }
package/tests/sao.js CHANGED
@@ -102,6 +102,9 @@
102
102
  "decode(Eval('test', 0))");
103
103
  QUnit.strictEqual(new Sao.PYSON.Decoder().decode(eval_), 0,
104
104
  "decode(Eval('test', 0))");
105
+ QUnit.strictEqual(
106
+ new Sao.PYSON.Decoder({test: undefined}).decode(eval_), 0,
107
+ "decode(Eval('test', 0))");
105
108
  });
106
109
 
107
110
  QUnit.test('PYSON Not', function() {