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
01473b72
Commit
01473b72
authored
Feb 07, 2017
by
Alexander Yuzhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Fix Bug 33907
parent
e258200a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
19 deletions
+33
-19
apps/spreadsheeteditor/main/app/controller/FormulaDialog.js
apps/spreadsheeteditor/main/app/controller/FormulaDialog.js
+22
-18
apps/spreadsheeteditor/mobile/app/controller/add/AddFunction.js
...preadsheeteditor/mobile/app/controller/add/AddFunction.js
+11
-1
No files found.
apps/spreadsheeteditor/main/app/controller/FormulaDialog.js
View file @
01473b72
...
@@ -60,6 +60,9 @@ define([
...
@@ -60,6 +60,9 @@ define([
initialize
:
function
()
{
initialize
:
function
()
{
var
me
=
this
;
var
me
=
this
;
Common
.
NotificationCenter
.
on
(
'
document:ready
'
,
_
.
bind
(
me
.
onDocumentReady
,
me
));
this
.
addListeners
({
this
.
addListeners
({
'
FileMenu
'
:
{
'
FileMenu
'
:
{
'
settings:apply
'
:
function
()
{
'
settings:apply
'
:
function
()
{
...
@@ -71,16 +74,28 @@ define([
...
@@ -71,16 +74,28 @@ define([
setApi
:
function
(
api
)
{
setApi
:
function
(
api
)
{
this
.
api
=
api
;
this
.
api
=
api
;
return
this
;
},
if
(
this
.
formulasGroups
&&
this
.
api
)
{
setMode
:
function
(
mode
)
{
this
.
loadingFormulas
();
this
.
mode
=
mode
;
return
this
;
},
onLaunch
:
function
()
{
this
.
formulasGroups
=
this
.
getApplication
().
getCollection
(
'
FormulaGroups
'
);
},
var
me
=
this
;
onDocumentReady
:
function
()
{
var
me
=
this
;
this
.
formulas
=
new
SSE
.
Views
.
FormulaDialog
({
if
(
me
.
formulasGroups
&&
me
.
api
)
{
api
:
this
.
api
,
me
.
loadingFormulas
();
me
.
formulas
=
new
SSE
.
Views
.
FormulaDialog
({
api
:
me
.
api
,
toolclose
:
'
hide
'
,
toolclose
:
'
hide
'
,
formulasGroups
:
this
.
formulasGroups
,
formulasGroups
:
me
.
formulasGroups
,
handler
:
function
(
func
)
{
handler
:
function
(
func
)
{
if
(
func
&&
me
.
api
)
{
if
(
func
&&
me
.
api
)
{
me
.
api
.
asc_insertFormula
(
func
,
Asc
.
c_oAscPopUpSelectorType
.
Func
);
me
.
api
.
asc_insertFormula
(
func
,
Asc
.
c_oAscPopUpSelectorType
.
Func
);
...
@@ -88,7 +103,7 @@ define([
...
@@ -88,7 +103,7 @@ define([
}
}
});
});
this
.
formulas
.
on
({
me
.
formulas
.
on
({
'
hide
'
:
function
()
{
'
hide
'
:
function
()
{
if
(
me
.
api
)
{
if
(
me
.
api
)
{
me
.
api
.
asc_enableKeyEvents
(
true
);
me
.
api
.
asc_enableKeyEvents
(
true
);
...
@@ -96,17 +111,6 @@ define([
...
@@ -96,17 +111,6 @@ define([
}
}
});
});
}
}
return
this
;
},
setMode
:
function
(
mode
)
{
this
.
mode
=
mode
;
return
this
;
},
onLaunch
:
function
()
{
this
.
formulasGroups
=
this
.
getApplication
().
getCollection
(
'
FormulaGroups
'
);
},
},
showDialog
:
function
()
{
showDialog
:
function
()
{
...
...
apps/spreadsheeteditor/mobile/app/controller/add/AddFunction.js
View file @
01473b72
...
@@ -58,7 +58,8 @@ define([
...
@@ -58,7 +58,8 @@ define([
],
],
initialize
:
function
()
{
initialize
:
function
()
{
Common
.
NotificationCenter
.
on
(
'
addcontainer:show
'
,
_
.
bind
(
this
.
initEvents
,
this
));
Common
.
NotificationCenter
.
on
(
'
addcontainer:show
'
,
_
.
bind
(
this
.
initEvents
,
this
));
Common
.
NotificationCenter
.
on
(
'
document:ready
'
,
_
.
bind
(
this
.
onDocumentReady
,
this
));
this
.
addListeners
({
this
.
addListeners
({
'
AddFunction
'
:
{
'
AddFunction
'
:
{
...
@@ -85,6 +86,15 @@ define([
...
@@ -85,6 +86,15 @@ define([
initEvents
:
function
()
{
initEvents
:
function
()
{
},
},
onDocumentReady
:
function
()
{
var
me
=
this
;
_
.
defer
(
function
()
{
me
.
api
.
asc_setLocalization
(
fc
);
me
.
fillFunctions
.
call
(
me
);
});
},
fillFunctions
:
function
()
{
fillFunctions
:
function
()
{
var
functions
=
{};
var
functions
=
{};
var
jsonDescr
=
JSON
.
parse
(
fd
);
var
jsonDescr
=
JSON
.
parse
(
fd
);
...
...
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