rsence-pre 2.3.0.5 → 2.3.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.0.5.pre
1
+ 2.3.0.6.pre
@@ -21,5 +21,6 @@
21
21
 
22
22
  .default .textarea_input_parent {
23
23
  position: absolute;
24
+ z-index: 2;
24
25
  #{(BROWSER_TYPE.firefox||BROWSER_TYPE.ie7||BROWSER_TYPE.ie8||BROWSER_TYPE.ie9||BROWSER_TYPE.opera)?'left:0;padding-left:1px;top:1px;right:3px;bottom:1px;':BROWSER_TYPE.ie?'left:2px;top:1px;right:1px;bottom:1px;':'left:-2px;top:-2px;right:-2px;bottom:-2px;'}
25
26
  }
@@ -10,6 +10,8 @@
10
10
  <div class="textcontrol_se"></div>
11
11
  <div class="textcontrol_sw"></div>
12
12
 
13
+ <div id="subview#{_ID}" class="textcontrol_subview"></div>
14
+
13
15
  <div id="label#{_ID}" title="#{this.label}" class="textarea_input_parent">
14
16
  <textarea class="textarea_input" style="resize:none;" #{this.enabled?'':'disabled'}
15
17
  onfocus="HSystem.views[#{this.viewId}].textFocus();"
@@ -21,8 +21,19 @@
21
21
  color: #ccc;
22
22
  }
23
23
 
24
+ .default .textcontrol_subview {
25
+ position: absolute;
26
+ left: 0; top: 0; right: 0; bottom: 0;
27
+ z-index: 1;
28
+ }
29
+
30
+ .default .active>.textcontrol_subview {
31
+ display: none;
32
+ }
33
+
24
34
  .default .textcontrol_input_parent {
25
35
  position: absolute;
36
+ z-index: 2;
26
37
  #{((BROWSER_TYPE.chrome && BROWSER_TYPE.mac)||BROWSER_TYPE.firefox||BROWSER_TYPE.ie7||BROWSER_TYPE.ie8||BROWSER_TYPE.ie9||BROWSER_TYPE.opera)?'left:0;padding-left:1px;top:0;right:4px;bottom:0;':BROWSER_TYPE.ie6?'left:2px;top:1px;right:1px;bottom:1px;':'left:-2px;top:-2px;right:-2px;bottom:-2px;'}
27
38
  #{(BROWSER_TYPE.chrome && BROWSER_TYPE.mac)?'top:1px;':''}
28
39
  }
@@ -10,6 +10,8 @@
10
10
  <div class="textcontrol_se"></div>
11
11
  <div class="textcontrol_sw"></div>
12
12
 
13
+ <div id="subview#{_ID}" class="textcontrol_subview"></div>
14
+
13
15
  <div id="label#{_ID}" title="#{this.label}" class="textcontrol_input_parent">
14
16
  <input type="text" class="textcontrol_input" #{this.enabled?'':'disabled'}
15
17
  onfocus="HSystem.views[#{this.viewId}].textFocus();"
@@ -136,6 +136,15 @@ HDateTime = HClass.extend({
136
136
  *
137
137
  **/
138
138
  tzMs: function(_date){
139
+ if( typeof _date === 'number' ){
140
+ var _dateDiv = new Date().getTime()/_date;
141
+ if( _dateDiv > 1000 ){
142
+ _date = new Date(_date);
143
+ }
144
+ else {
145
+ _date = new Date(_date*1000);
146
+ }
147
+ }
139
148
  return _date.getTimezoneOffset()*this.msMinute;
140
149
  },
141
150
 
@@ -789,5 +789,5 @@ HEventResponder = HClass.extend({
789
789
  this.selected = false;
790
790
  this.deSelect();
791
791
  }
792
- }
793
- });
792
+ }
793
+ });
@@ -21,11 +21,11 @@ HRadioButtonList = HListItemControl.extend({
21
21
  listItemViews: [],
22
22
 
23
23
  /** = Description
24
- * Setter function for listItems and listItemViews. Destroys
24
+ * Setter function for listItems and listItemViews. Destroys
25
25
  * the old HRadiabuttons before creating the new ones based on the
26
- * listItems given as an parameter.
26
+ * listItems given as an parameter.
27
27
  *
28
- * = Parameters
28
+ * = Parameters
29
29
  * +_listItems+:: listItems is an array-packed array, where each index in the
30
30
  * surrounding array contains a [ value, label ] pair.
31
31
  * The value is mapped to the value of the HRadiobuttonList
@@ -78,7 +78,7 @@ HRadioButtonList = HListItemControl.extend({
78
78
  /** = Description
79
79
  * Destructor. Sets listItems and listItemViews to null and initiates
80
80
  * destructor for radioButtonIndexValue.
81
- *
81
+ *
82
82
  **/
83
83
  die: function(){
84
84
  if(this._listItemResponder){
@@ -107,14 +107,16 @@ HRadioButtonList = HListItemControl.extend({
107
107
  },
108
108
 
109
109
  /** = Description
110
- *
111
- *
110
+ * RadioButtonIndexResponder sets the value based on which radiobutton is selected.
112
111
  **/
113
112
  RadioButtonIndexResponder: HValueResponder.extend({
114
113
  constructor: function( _parent, _valueObj ){
115
114
  this.parent = _parent;
116
115
  },
117
116
  refresh: function(){
117
+ if( this.value === -1 ){
118
+ return;
119
+ }
118
120
  var
119
121
  _listItems = this.parent.listItems,
120
122
  _value;
@@ -124,7 +126,6 @@ HRadioButtonList = HListItemControl.extend({
124
126
  if(_listItems[ this.value ] !== undefined){
125
127
  _value = _listItems[ this.value ];
126
128
  if( this.parent.value !== _value[0] ){
127
- // console.log('radio button index responder:',_value[0],', parent value:',this.parent.value);
128
129
  this.parent.setValue( _value[0] );
129
130
  }
130
131
  }
@@ -136,7 +137,6 @@ HRadioButtonList = HListItemControl.extend({
136
137
  refreshValue: function(){
137
138
  var _value = this.value;
138
139
  if ( this.listItems && this.listItems.length !== 0 && this['valueMatrix'] !== undefined ) {
139
- // debugger;
140
140
  if ( this.radioButtonResponder === false ){
141
141
  this.radioButtonIndexValue = HValue.nu( false, 0 );
142
142
  this.radioButtonIndexValue.bind( this.valueMatrix );
@@ -145,10 +145,8 @@ HRadioButtonList = HListItemControl.extend({
145
145
  }
146
146
  for ( var i = 0; i < this.listItems.length; i++ ) {
147
147
  if ( this.listItems[i][0] === _value ) {
148
- // if( this.radioButtonResponder.value !== i ){
149
148
  this.radioButtonResponder.setValue( -1 );
150
149
  this.radioButtonResponder.setValue( i );
151
- // }
152
150
  break;
153
151
  }
154
152
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsence-pre
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0.5
4
+ version: 2.3.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-10 00:00:00.000000000 Z
13
+ date: 2012-10-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsence-deps