Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
Yii Bootstrap 3
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Common
Yii Bootstrap 3
Commits
dc79d217
Commit
dc79d217
authored
Oct 14, 2011
by
niskac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor improvements to the BootTwipsy widget.
parent
9de623ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
jquery.boottwipsy.js
assets/js/jquery.boottwipsy.js
+8
-3
BootTwipsy.php
widgets/BootTwipsy.php
+1
-1
No files found.
assets/js/jquery.boottwipsy.js
View file @
dc79d217
...
@@ -13,7 +13,10 @@
...
@@ -13,7 +13,10 @@
* @type Object
* @type Object
*/
*/
var
defaults
=
{
var
defaults
=
{
placement
:
'above'
placement
:
'above'
,
inEvent
:
'mouseenter'
,
outEvent
:
'mouseleave'
,
live
:
false
};
};
/**
/**
...
@@ -42,11 +45,13 @@
...
@@ -42,11 +45,13 @@
visible
:
false
visible
:
false
});
});
element
.
bind
(
'mouseover'
,
function
(
event
)
{
var
fn
=
settings
.
live
?
'live'
:
'bind'
;
element
.
fn
(
settings
.
inEvent
,
function
(
event
)
{
methods
.
show
(
element
);
methods
.
show
(
element
);
});
});
element
.
bind
(
'mouseout'
,
function
(
event
)
{
element
.
fn
(
settings
.
outEvent
,
function
(
event
)
{
methods
.
hide
(
element
);
methods
.
hide
(
element
);
});
});
}
}
...
...
widgets/BootTwipsy.php
View file @
dc79d217
...
@@ -12,7 +12,7 @@ class BootTwipsy extends BootWidget
...
@@ -12,7 +12,7 @@ class BootTwipsy extends BootWidget
/**
/**
* @property string the CSS selector to use for selecting the twipsy elements.
* @property string the CSS selector to use for selecting the twipsy elements.
*/
*/
public
$selector
=
'
.twipsy
'
;
public
$selector
=
'
a[title]
'
;
/**
/**
* Initializes the widget.
* Initializes the widget.
...
...
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