Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
bootstrap
Commits
5057e7c7
Commit
5057e7c7
authored
Mar 17, 2014
by
XhmikosR
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused variables and make tests pass.
parent
7d1365ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
docs/assets/js/_src/application.js
docs/assets/js/_src/application.js
+6
-5
No files found.
docs/assets/js/_src/application.js
View file @
5057e7c7
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
* details, see http://creativecommons.org/licenses/by/3.0/.
* details, see http://creativecommons.org/licenses/by/3.0/.
*/
*/
/* global ZeroClipboard */
!
function
(
$
)
{
!
function
(
$
)
{
'
use strict
'
;
'
use strict
'
;
...
@@ -108,7 +109,7 @@
...
@@ -108,7 +109,7 @@
})
})
// Insert copy to clipboard button before .highlight or .bs-example
// Insert copy to clipboard button before .highlight or .bs-example
$
(
'
.highlight
'
).
each
(
function
()
{
$
(
'
.highlight
'
).
each
(
function
()
{
var
highlight
=
$
(
this
)
var
highlight
=
$
(
this
)
var
previous
=
highlight
.
prev
()
var
previous
=
highlight
.
prev
()
var
btnHtml
=
'
<div class="zero-clipboard"><span class="btn-clipboard">Copy</span></div>
'
var
btnHtml
=
'
<div class="zero-clipboard"><span class="btn-clipboard">Copy</span></div>
'
...
@@ -123,7 +124,7 @@
...
@@ -123,7 +124,7 @@
var
htmlBridge
=
$
(
'
#global-zeroclipboard-html-bridge
'
)
var
htmlBridge
=
$
(
'
#global-zeroclipboard-html-bridge
'
)
// Handlers for ZeroClipboard
// Handlers for ZeroClipboard
zeroClipboard
.
on
(
'
load
'
,
function
(
client
)
{
zeroClipboard
.
on
(
'
load
'
,
function
(
)
{
htmlBridge
htmlBridge
.
data
(
'
placement
'
,
'
top
'
)
.
data
(
'
placement
'
,
'
top
'
)
.
attr
(
'
title
'
,
'
Copy to clipboard
'
)
.
attr
(
'
title
'
,
'
Copy to clipboard
'
)
...
@@ -131,13 +132,13 @@
...
@@ -131,13 +132,13 @@
})
})
// Copy to clipboard
// Copy to clipboard
zeroClipboard
.
on
(
'
dataRequested
'
,
function
(
client
)
{
zeroClipboard
.
on
(
'
dataRequested
'
,
function
(
client
)
{
var
highlight
=
$
(
this
).
parent
().
nextAll
(
'
.highlight
'
).
first
()
var
highlight
=
$
(
this
).
parent
().
nextAll
(
'
.highlight
'
).
first
()
client
.
setText
(
highlight
.
text
())
client
.
setText
(
highlight
.
text
())
})
})
// Notify copy success and reset tooltip title
// Notify copy success and reset tooltip title
zeroClipboard
.
on
(
'
complete
'
,
function
(
client
)
{
zeroClipboard
.
on
(
'
complete
'
,
function
(
)
{
htmlBridge
htmlBridge
.
attr
(
'
title
'
,
'
Copied!
'
)
.
attr
(
'
title
'
,
'
Copied!
'
)
.
tooltip
(
'
fixTitle
'
)
.
tooltip
(
'
fixTitle
'
)
...
@@ -147,7 +148,7 @@
...
@@ -147,7 +148,7 @@
})
})
// Notify copy failure
// Notify copy failure
zeroClipboard
.
on
(
'
noflash wrongflash
'
,
function
(
client
)
{
zeroClipboard
.
on
(
'
noflash wrongflash
'
,
function
(
)
{
htmlBridge
htmlBridge
.
attr
(
'
title
'
,
'
Flash required
'
)
.
attr
(
'
title
'
,
'
Flash required
'
)
.
tooltip
(
'
fixTitle
'
)
.
tooltip
(
'
fixTitle
'
)
...
...
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