Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
0e7652b6
Commit
0e7652b6
authored
Dec 19, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6584 from creocoder/yii-grid-action-column-incomplete-signature-fixes
\yii\grid\ActionColumn incomplete anonymous functions signature fix
parents
6c80cba3
267da3cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ActionColumn.php
framework/grid/ActionColumn.php
+3
-3
No files found.
framework/grid/ActionColumn.php
View file @
0e7652b6
...
...
@@ -97,7 +97,7 @@ class ActionColumn extends Column
protected
function
initDefaultButtons
()
{
if
(
!
isset
(
$this
->
buttons
[
'view'
]))
{
$this
->
buttons
[
'view'
]
=
function
(
$url
,
$model
)
{
$this
->
buttons
[
'view'
]
=
function
(
$url
,
$model
,
$key
)
{
return
Html
::
a
(
'<span class="glyphicon glyphicon-eye-open"></span>'
,
$url
,
[
'title'
=>
Yii
::
t
(
'yii'
,
'View'
),
'data-pjax'
=>
'0'
,
...
...
@@ -105,7 +105,7 @@ class ActionColumn extends Column
};
}
if
(
!
isset
(
$this
->
buttons
[
'update'
]))
{
$this
->
buttons
[
'update'
]
=
function
(
$url
,
$model
)
{
$this
->
buttons
[
'update'
]
=
function
(
$url
,
$model
,
$key
)
{
return
Html
::
a
(
'<span class="glyphicon glyphicon-pencil"></span>'
,
$url
,
[
'title'
=>
Yii
::
t
(
'yii'
,
'Update'
),
'data-pjax'
=>
'0'
,
...
...
@@ -113,7 +113,7 @@ class ActionColumn extends Column
};
}
if
(
!
isset
(
$this
->
buttons
[
'delete'
]))
{
$this
->
buttons
[
'delete'
]
=
function
(
$url
,
$model
)
{
$this
->
buttons
[
'delete'
]
=
function
(
$url
,
$model
,
$key
)
{
return
Html
::
a
(
'<span class="glyphicon glyphicon-trash"></span>'
,
$url
,
[
'title'
=>
Yii
::
t
(
'yii'
,
'Delete'
),
'data-confirm'
=>
Yii
::
t
(
'yii'
,
'Are you sure you want to delete this item?'
),
...
...
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