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
a7b3b6fa
Commit
a7b3b6fa
authored
Feb 14, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Convert table to range.
parent
e25fe1c7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
apps/spreadsheeteditor/main/app/template/TableSettings.template
...preadsheeteditor/main/app/template/TableSettings.template
+5
-0
apps/spreadsheeteditor/main/app/view/TableSettings.js
apps/spreadsheeteditor/main/app/view/TableSettings.js
+11
-1
apps/spreadsheeteditor/main/locale/en.json
apps/spreadsheeteditor/main/locale/en.json
+1
-0
No files found.
apps/spreadsheeteditor/main/app/template/TableSettings.template
View file @
a7b3b6fa
...
...
@@ -73,6 +73,11 @@
<div id="table-btn-edit" style="display: inline-block; float:right;"></div>
</td>
</tr>
<tr>
<td class="padding-small" colspan=2>
<button type="button" class="btn btn-text-default" id="table-btn-convert-range" style="width:100%;"><%= scope.textConvertRange %></button>
</td>
</tr>
<tr>
<td class="padding-small" colspan=2>
<div class="separator horizontal"></div>
...
...
apps/spreadsheeteditor/main/app/view/TableSettings.js
View file @
a7b3b6fa
...
...
@@ -286,6 +286,15 @@ define([
this
.
btnEdit
.
menu
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onEditClick
,
this
));
this
.
lockedControls
.
push
(
this
.
btnEdit
);
this
.
btnConvertRange
=
new
Common
.
UI
.
Button
({
el
:
$
(
'
#table-btn-convert-range
'
)
});
this
.
btnConvertRange
.
on
(
'
click
'
,
_
.
bind
(
function
(
btn
){
if
(
this
.
api
)
this
.
api
.
asc_convertTableToRange
(
this
.
_state
.
TableName
);
Common
.
NotificationCenter
.
trigger
(
'
edit:complete
'
,
this
);
},
this
));
this
.
lockedControls
.
push
(
this
.
btnConvertRange
);
$
(
this
.
el
).
on
(
'
click
'
,
'
#table-advanced-link
'
,
_
.
bind
(
this
.
openAdvancedSettings
,
this
));
this
.
_initSettings
=
false
;
...
...
@@ -534,7 +543,8 @@ define([
textIsLocked
:
'
This element is being edited by another user.
'
,
notcriticalErrorTitle
:
'
Warning
'
,
textReservedName
:
'
The name you are trying to use is already referenced in cell formulas. Please use some other name.
'
,
textAdvanced
:
'
Show advanced settings
'
textAdvanced
:
'
Show advanced settings
'
,
textConvertRange
:
'
Convert to range
'
},
SSE
.
Views
.
TableSettings
||
{}));
});
\ No newline at end of file
apps/spreadsheeteditor/main/locale/en.json
View file @
a7b3b6fa
...
...
@@ -1458,6 +1458,7 @@
"SSE.Views.TableSettings.textTableName"
:
"Table Name"
,
"SSE.Views.TableSettings.textTemplate"
:
"Select From Template"
,
"SSE.Views.TableSettings.textTotal"
:
"Total"
,
"SSE.Views.TableSettings.textConvertRange"
:
"Convert to range"
,
"SSE.Views.TableSettingsAdvanced.cancelButtonText"
:
"Cancel"
,
"SSE.Views.TableSettingsAdvanced.okButtonText"
:
"Ok"
,
"SSE.Views.TableSettingsAdvanced.textAlt"
:
"Alternative Text"
,
...
...
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