Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
af21b7eb
Commit
af21b7eb
authored
Aug 30, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Apply row/column size by pressing the Enter when size isn't changed.
parent
ff39cf93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
apps/spreadsheeteditor/main/app/view/SetValueDialog.js
apps/spreadsheeteditor/main/app/view/SetValueDialog.js
+5
-5
No files found.
apps/spreadsheeteditor/main/app/view/SetValueDialog.js
View file @
af21b7eb
...
...
@@ -104,7 +104,7 @@ define([
var
$window
=
this
.
getChild
();
$window
.
find
(
'
.dlg-btn
'
).
on
(
'
click
'
,
_
.
bind
(
this
.
onBtnClick
,
this
));
this
.
spnSize
.
on
(
'
entervalue
'
,
_
.
bind
(
this
.
on
EnterValue
,
this
));
this
.
spnSize
.
on
(
'
entervalue
'
,
_
.
bind
(
this
.
on
Primary
,
this
));
this
.
spnSize
.
on
(
'
change
'
,
_
.
bind
(
this
.
onChange
,
this
));
this
.
spnSize
.
$el
.
find
(
'
input
'
).
focus
();
},
...
...
@@ -121,10 +121,6 @@ define([
this
.
_handleInput
(
event
.
currentTarget
.
attributes
[
'
result
'
].
value
);
},
onEnterValue
:
function
(
event
)
{
this
.
_handleInput
(
'
ok
'
);
},
onChange
:
function
()
{
var
val
=
this
.
spnSize
.
getNumberValue
();
val
=
val
/
this
.
step
;
val
=
(
val
|
val
)
*
this
.
step
;
...
...
@@ -135,6 +131,10 @@ define([
return
this
.
spnSize
.
getNumberValue
();
},
onPrimary
:
function
()
{
this
.
_handleInput
(
'
ok
'
);
},
cancelButtonText
:
'
Cancel
'
,
okButtonText
:
'
Ok
'
,
txtMinText
:
'
The minimum value for this field is {0}
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment