mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FEATURE: Add close link (from r97751)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@99088 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
872d86e7f4
commit
bb58914bb0
@ -85,9 +85,9 @@
|
|||||||
#SilverStripeNavigatorLinkPopup {
|
#SilverStripeNavigatorLinkPopup {
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -50px;
|
top: -60px;
|
||||||
height: 40px;
|
height: 50px;
|
||||||
width: 280px;
|
width: 350px;
|
||||||
left: 200px;
|
left: 200px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
@ -99,3 +99,13 @@
|
|||||||
#SilverStripeNavigatorLinkPopup input {
|
#SilverStripeNavigatorLinkPopup input {
|
||||||
width: 250px;
|
width: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#SilverStripeNavigatorLinkPopup a.close {
|
||||||
|
color: blue;
|
||||||
|
text-align: right;
|
||||||
|
width: 80%;
|
||||||
|
border: none !important;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,6 +19,13 @@ function windowName(suffix) {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$('#SilverStripeNavigatorLinkPopup a.close').livequery('click',
|
||||||
|
function() {
|
||||||
|
$('#SilverStripeNavigatorLinkPopup').hide();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
$('#SilverStripeNavigatorLinkPopup input').livequery('focus',
|
$('#SilverStripeNavigatorLinkPopup input').livequery('focus',
|
||||||
function() {
|
function() {
|
||||||
this.select();
|
this.select();
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
<% _t('SilverStripeNavigatorLink.ShareLink','Share link') %>
|
<% _t('SilverStripeNavigatorLink.ShareLink','Share link') %>
|
||||||
</a>
|
</a>
|
||||||
<div id="SilverStripeNavigatorLinkPopup">
|
<div id="SilverStripeNavigatorLinkPopup">
|
||||||
|
<a class="close"><% _t('SilverStripeNavigatorLinkl.CloseLink','Close') %></a>
|
||||||
<p>
|
<p>
|
||||||
<% _t('SilverStripeNavigatorLink.ShareInstructions','To share a this to this page, copy and paste the link below.') %></p>
|
<% _t('SilverStripeNavigatorLink.ShareInstructions','To share a this to this page, copy and paste the link below.') %></p>
|
||||||
<input value="$Link" />
|
<input value="$Link" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user