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
936ae4b8
Commit
936ae4b8
authored
Mar 30, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Подключена вставка и удаление строк таблицы.
parent
1a15decd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
apps/spreadsheeteditor/main/app/view/TableSettings.js
apps/spreadsheeteditor/main/app/view/TableSettings.js
+16
-10
No files found.
apps/spreadsheeteditor/main/app/view/TableSettings.js
View file @
936ae4b8
...
...
@@ -126,8 +126,9 @@ define([
el
:
$
(
'
#table-txt-name
'
),
name
:
'
name
'
,
style
:
'
width: 100%;
'
,
allowBlank
:
false
,
blankError
:
this
.
txtEmpty
validateOnBlur
:
false
}).
on
(
'
changed:after
'
,
function
(
input
,
newValue
,
oldValue
)
{
// set table name
});
this
.
lockedControls
.
push
(
this
.
txtTableName
);
...
...
@@ -147,14 +148,14 @@ define([
{
caption
:
this
.
selectDataText
,
value
:
c_oAscChangeSelectionFormatTable
.
data
,
idx
:
2
},
{
caption
:
this
.
selectTableText
,
value
:
c_oAscChangeSelectionFormatTable
.
all
,
idx
:
3
},
{
caption
:
'
--
'
},
{
caption
:
this
.
insertRowAboveText
,
value
:
4
},
{
caption
:
this
.
insertRowBelowText
,
value
:
5
},
{
caption
:
this
.
insertColumnLeftText
,
value
:
6
},
{
caption
:
this
.
insertColumnRightText
,
value
:
7
},
{
caption
:
this
.
insertRowAboveText
,
value
:
c_oAscInsertOptions
.
InsertTableRowAbove
,
idx
:
4
},
{
caption
:
this
.
insertRowBelowText
,
value
:
c_oAscInsertOptions
.
InsertTableRowBelow
,
idx
:
5
},
{
caption
:
this
.
insertColumnLeftText
,
value
:
c_oAscInsertOptions
.
InsertTableColLeft
,
idx
:
6
},
{
caption
:
this
.
insertColumnRightText
,
value
:
c_oAscInsertOptions
.
InsertTableColRight
,
idx
:
7
},
{
caption
:
'
--
'
},
{
caption
:
this
.
deleteRowText
,
value
:
8
},
{
caption
:
this
.
deleteColumnText
,
value
:
9
},
{
caption
:
this
.
deleteTableText
,
value
:
10
}
{
caption
:
this
.
deleteRowText
,
value
:
c_oAscDeleteOptions
.
DeleteRows
,
idx
:
8
},
{
caption
:
this
.
deleteColumnText
,
value
:
c_oAscDeleteOptions
.
DeleteColumns
,
idx
:
9
},
{
caption
:
this
.
deleteTableText
,
value
:
c_oAscDeleteOptions
.
DeleteColumns
,
idx
:
10
}
]
})
});
...
...
@@ -185,8 +186,13 @@ define([
onEditClick
:
function
(
menu
,
item
,
e
)
{
if
(
this
.
api
)
{
if
(
item
.
idx
>=
0
&&
item
.
idx
<
4
)
if
(
item
.
options
.
idx
>=
0
&&
item
.
options
.
idx
<
4
)
this
.
api
.
asc_changeSelectionFormatTable
(
this
.
_state
.
TableName
,
item
.
value
);
else
if
(
item
.
options
.
idx
>=
4
&&
item
.
options
.
idx
<
8
)
{
this
.
api
.
asc_insertCellsInTable
(
this
.
_state
.
TableName
,
item
.
value
);
}
else
{
this
.
api
.
asc_deleteCellsInTable
(
this
.
_state
.
TableName
,
item
.
value
);
}
}
Common
.
NotificationCenter
.
trigger
(
'
edit:complete
'
,
this
);
},
...
...
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