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
362f71b1
Commit
362f71b1
authored
May 22, 2013
by
Alexander Kochetov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Widget::$transition removed, bundles depency fixed
parent
0e12aee8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
19 deletions
+11
-19
Widget.php
yii/bootstrap/Widget.php
+0
-8
assets.php
yii/bootstrap/assets.php
+11
-11
No files found.
yii/bootstrap/Widget.php
View file @
362f71b1
...
@@ -26,10 +26,6 @@ class Widget extends \yii\base\Widget
...
@@ -26,10 +26,6 @@ class Widget extends \yii\base\Widget
*/
*/
public
static
$responsive
=
true
;
public
static
$responsive
=
true
;
/**
/**
* @var boolean whether to use the transition effects.
*/
public
static
$transition
=
true
;
/**
* @var array the HTML attributes for the widget container tag.
* @var array the HTML attributes for the widget container tag.
*/
*/
public
$options
=
array
();
public
$options
=
array
();
...
@@ -72,10 +68,6 @@ class Widget extends \yii\base\Widget
...
@@ -72,10 +68,6 @@ class Widget extends \yii\base\Widget
$view
=
$this
->
getView
();
$view
=
$this
->
getView
();
$view
->
registerAssetBundle
(
static
::
$responsive
?
'yii/bootstrap/responsive'
:
'yii/bootstrap'
);
$view
->
registerAssetBundle
(
static
::
$responsive
?
'yii/bootstrap/responsive'
:
'yii/bootstrap'
);
if
(
static
::
$transition
)
{
$view
->
registerAssetBundle
(
'yii/bootstrap/transition'
);
}
if
(
$this
->
pluginOptions
!==
false
)
{
if
(
$this
->
pluginOptions
!==
false
)
{
$options
=
empty
(
$this
->
pluginOptions
)
?
''
:
Json
::
encode
(
$this
->
pluginOptions
);
$options
=
empty
(
$this
->
pluginOptions
)
?
''
:
Json
::
encode
(
$this
->
pluginOptions
);
$js
=
"jQuery('#
$id
').
$name
(
$options
);"
;
$js
=
"jQuery('#
$id
').
$name
(
$options
);"
;
...
...
yii/bootstrap/assets.php
View file @
362f71b1
...
@@ -19,49 +19,49 @@ return array(
...
@@ -19,49 +19,49 @@ return array(
'js'
=>
array
(
'js'
=>
array
(
'js/bootstrap-affix.js'
,
'js/bootstrap-affix.js'
,
),
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
,
'yii/bootstrap/transition'
),
),
),
'yii/bootstrap/alert'
=>
array
(
'yii/bootstrap/alert'
=>
array
(
'sourcePath'
=>
__DIR__
.
'/assets'
,
'sourcePath'
=>
__DIR__
.
'/assets'
,
'js'
=>
array
(
'js'
=>
array
(
'js/bootstrap-alert.js'
,
'js/bootstrap-alert.js'
,
),
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
,
'yii/bootstrap/transition'
),
),
),
'yii/bootstrap/button'
=>
array
(
'yii/bootstrap/button'
=>
array
(
'sourcePath'
=>
__DIR__
.
'/assets'
,
'sourcePath'
=>
__DIR__
.
'/assets'
,
'js'
=>
array
(
'js'
=>
array
(
'js/bootstrap-button.js'
,
'js/bootstrap-button.js'
,
),
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
,
'yii/bootstrap/transition'
),
),
),
'yii/bootstrap/carousel'
=>
array
(
'yii/bootstrap/carousel'
=>
array
(
'sourcePath'
=>
__DIR__
.
'/assets'
,
'sourcePath'
=>
__DIR__
.
'/assets'
,
'js'
=>
array
(
'js'
=>
array
(
'js/bootstrap-carousel.js'
,
'js/bootstrap-carousel.js'
,
),
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
,
'yii/bootstrap/transition'
),
),
),
'yii/bootstrap/collapse'
=>
array
(
'yii/bootstrap/collapse'
=>
array
(
'sourcePath'
=>
__DIR__
.
'/assets'
,
'sourcePath'
=>
__DIR__
.
'/assets'
,
'js'
=>
array
(
'js'
=>
array
(
'js/bootstrap-collapse.js'
,
'js/bootstrap-collapse.js'
,
),
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
,
'yii/bootstrap/transition'
),
),
),
'yii/bootstrap/dropdown'
=>
array
(
'yii/bootstrap/dropdown'
=>
array
(
'sourcePath'
=>
__DIR__
.
'/assets'
,
'sourcePath'
=>
__DIR__
.
'/assets'
,
'js'
=>
array
(
'js'
=>
array
(
'js/bootstrap-dropdown.js'
,
'js/bootstrap-dropdown.js'
,
),
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
,
'yii/bootstrap/transition'
),
),
),
'yii/bootstrap/modal'
=>
array
(
'yii/bootstrap/modal'
=>
array
(
'sourcePath'
=>
__DIR__
.
'/assets'
,
'sourcePath'
=>
__DIR__
.
'/assets'
,
'js'
=>
array
(
'js'
=>
array
(
'js/bootstrap-modal.js'
,
'js/bootstrap-modal.js'
,
),
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
,
'yii/bootstrap/transition'
),
),
),
'yii/bootstrap/popover'
=>
array
(
'yii/bootstrap/popover'
=>
array
(
'sourcePath'
=>
__DIR__
.
'/assets'
,
'sourcePath'
=>
__DIR__
.
'/assets'
,
...
@@ -75,21 +75,21 @@ return array(
...
@@ -75,21 +75,21 @@ return array(
'js'
=>
array
(
'js'
=>
array
(
'js/bootstrap-scrollspy.js'
,
'js/bootstrap-scrollspy.js'
,
),
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
,
'yii/bootstrap/transition'
),
),
),
'yii/bootstrap/tab'
=>
array
(
'yii/bootstrap/tab'
=>
array
(
'sourcePath'
=>
__DIR__
.
'/assets'
,
'sourcePath'
=>
__DIR__
.
'/assets'
,
'js'
=>
array
(
'js'
=>
array
(
'js/bootstrap-tab.js'
,
'js/bootstrap-tab.js'
,
),
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
,
'yii/bootstrap/transition'
),
),
),
'yii/bootstrap/tooltip'
=>
array
(
'yii/bootstrap/tooltip'
=>
array
(
'sourcePath'
=>
__DIR__
.
'/assets'
,
'sourcePath'
=>
__DIR__
.
'/assets'
,
'js'
=>
array
(
'js'
=>
array
(
'js/bootstrap-tooltip.js'
,
'js/bootstrap-tooltip.js'
,
),
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
,
'yii/bootstrap/transition'
),
),
),
'yii/bootstrap/transition'
=>
array
(
'yii/bootstrap/transition'
=>
array
(
'sourcePath'
=>
__DIR__
.
'/assets'
,
'sourcePath'
=>
__DIR__
.
'/assets'
,
...
@@ -103,6 +103,6 @@ return array(
...
@@ -103,6 +103,6 @@ return array(
'js'
=>
array
(
'js'
=>
array
(
'js/bootstrap-typeahead.js'
,
'js/bootstrap-typeahead.js'
,
),
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
),
'depends'
=>
array
(
'yii/jquery'
,
'yii/bootstrap'
,
'yii/bootstrap/transition'
),
),
),
);
);
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