File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ services:
11
11
- 8081:8081
12
12
volumes :
13
13
- datastore:/root/.config
14
- command : gcloud beta emulators datastore start --host-port=0.0.0.0:8081 --project glowscript-dev
14
+ command : sh -c " gcloud beta emulators datastore start --host-port=0.0.0.0:8081 --project glowscript-dev"
15
15
16
16
volumes :
17
17
datastore :
Original file line number Diff line number Diff line change 2914
2914
attrs . jwinput = $ ( '<input type="text" id="' + attrs . _id + '"/>' ) . val ( attrs . text ) . appendTo ( attrs . pos )
2915
2915
. css ( { "width" :attrs . width . toString ( ) + 'px' , "height" :attrs . height . toString ( ) + 'px' ,
2916
2916
"font-size" :( attrs . height - 5 ) . toString ( ) + "px" , "font-family" :"sans-serif" } )
2917
- . keypress ( function ( k ) { if ( k . keyCode == 13 ) { // 13 is Next
2917
+ . keypress ( function ( k ) {
2918
+ if ( k . keyCode == 13 ) { // 13 is Next
2919
+ attrs . text = attrs . jwinput . val ( )
2920
+ var ok = wparse ( )
2921
+ if ( ! ok ) {
2922
+ alert ( 'Numeric input error' )
2923
+ return
2924
+ }
2925
+ attrs . bind ( cwinput )
2926
+ }
2927
+ } )
2928
+ . blur ( function ( k ) {
2918
2929
attrs . text = attrs . jwinput . val ( )
2919
2930
var ok = wparse ( )
2920
2931
if ( ! ok ) {
2921
2932
alert ( 'Numeric input error' )
2922
2933
return
2923
2934
}
2924
2935
attrs . bind ( cwinput )
2925
- }
2926
- } )
2936
+ } )
2927
2937
2928
2938
var cwinput = { // this structure implements a JavaScript "closure", essential for winput to work
2929
2939
get disabled ( ) { return attrs . disabled } ,
You can’t perform that action at this time.
0 commit comments