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
f224902b
Commit
f224902b
authored
Dec 29, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1636: `yii\jui\SliderInput` wasn't properly initialized
parent
515095bb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
SliderInput.php
extensions/yii/jui/SliderInput.php
+4
-3
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
No files found.
extensions/yii/jui/SliderInput.php
View file @
f224902b
...
@@ -15,7 +15,7 @@ use yii\helpers\Html;
...
@@ -15,7 +15,7 @@ use yii\helpers\Html;
* For example,
* For example,
*
*
* ```
* ```
* echo Slider::widget([
* echo Slider
Input
::widget([
* 'model' => $model,
* 'model' => $model,
* 'attribute' => 'amount',
* 'attribute' => 'amount',
* 'clientOptions' => [
* 'clientOptions' => [
...
@@ -28,7 +28,7 @@ use yii\helpers\Html;
...
@@ -28,7 +28,7 @@ use yii\helpers\Html;
* The following example will use the name property instead:
* The following example will use the name property instead:
*
*
* ```
* ```
* echo Slider::widget([
* echo Slider
Input
::widget([
* 'name' => 'amount',
* 'name' => 'amount',
* 'clientOptions' => [
* 'clientOptions' => [
* 'min' => 1,
* 'min' => 1,
...
@@ -75,8 +75,10 @@ class SliderInput extends InputWidget
...
@@ -75,8 +75,10 @@ class SliderInput extends InputWidget
if
(
$this
->
hasModel
())
{
if
(
$this
->
hasModel
())
{
echo
Html
::
activeHiddenInput
(
$this
->
model
,
$this
->
attribute
,
$this
->
options
);
echo
Html
::
activeHiddenInput
(
$this
->
model
,
$this
->
attribute
,
$this
->
options
);
$this
->
clientOptions
[
'value'
]
=
$this
->
model
{
$this
->
attribute
};
}
else
{
}
else
{
echo
Html
::
hiddenInput
(
$this
->
name
,
$this
->
value
,
$this
->
options
);
echo
Html
::
hiddenInput
(
$this
->
name
,
$this
->
value
,
$this
->
options
);
$this
->
clientOptions
[
'value'
]
=
$this
->
value
;
}
}
if
(
!
isset
(
$this
->
clientEvents
[
'slide'
]))
{
if
(
!
isset
(
$this
->
clientEvents
[
'slide'
]))
{
...
@@ -86,6 +88,5 @@ class SliderInput extends InputWidget
...
@@ -86,6 +88,5 @@ class SliderInput extends InputWidget
}
}
$this
->
registerWidget
(
'slider'
,
SliderAsset
::
className
(),
$this
->
containerOptions
[
'id'
]);
$this
->
registerWidget
(
'slider'
,
SliderAsset
::
className
(),
$this
->
containerOptions
[
'id'
]);
$this
->
getView
()
->
registerJs
(
'$("#'
.
$this
->
options
[
'id'
]
.
'").val($("#'
.
$this
->
id
.
'").slider("value"));'
);
}
}
}
}
framework/CHANGELOG.md
View file @
f224902b
...
@@ -16,6 +16,7 @@ Yii Framework 2 Change Log
...
@@ -16,6 +16,7 @@ Yii Framework 2 Change Log
-
Bug #1591: StringValidator is accessing undefined property (qiangxue)
-
Bug #1591: StringValidator is accessing undefined property (qiangxue)
-
Bug #1597: Added
`enableAutoLogin`
to basic and advanced application templates so "remember me" now works properly (samdark)
-
Bug #1597: Added
`enableAutoLogin`
to basic and advanced application templates so "remember me" now works properly (samdark)
-
Bug #1631: Charset is now explicitly set to UTF-8 when serving JSON (samdark)
-
Bug #1631: Charset is now explicitly set to UTF-8 when serving JSON (samdark)
-
Bug #1636:
`yii\jui\SliderInput`
wasn't properly initialized (samdark)
-
Bug #1686: ActiveForm is creating duplicated messages in error summary (qiangxue)
-
Bug #1686: ActiveForm is creating duplicated messages in error summary (qiangxue)
-
Bug: Fixed
`Call to a member function registerAssetFiles() on a non-object`
in case of wrong
`sourcePath`
for an asset bundle (samdark)
-
Bug: Fixed
`Call to a member function registerAssetFiles() on a non-object`
in case of wrong
`sourcePath`
for an asset bundle (samdark)
-
Bug: Fixed incorrect event name for
`yii\jui\Spinner`
(samdark)
-
Bug: Fixed incorrect event name for
`yii\jui\Spinner`
(samdark)
...
...
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