BUGFIX: Target correct selector for link section buttons to work

This commit is contained in:
Ryan O'Hara 2012-08-23 15:53:14 +12:00
parent 3324f33ffd
commit 8ca9734232
3 changed files with 13 additions and 13 deletions

View File

@ -39,15 +39,15 @@
#Form_EditForm_RelatedLinks table { padding: 1em 0; }
#Form_EditForm_RelatedLinks table thead h2 { display: none; }
#LinkSectionID .middleColumn { overflow: auto; min-width: 800px; }
#LinkSectionID .middleColumn ul { padding: 0; }
#LinkSectionID .middleColumn ul input[type="radio"] { display: none; }
#LinkSectionID .middleColumn ul li { display: table; padding: 0; width: 125px; height: 40px; white-space: normal; margin-right: -1px; border-radius: 0; }
#LinkSectionID .middleColumn ul li:first-child { border-radius: 6px 0 0 6px; border-left: 1px solid #C0C0C2; }
#LinkSectionID .middleColumn ul li:last-child { border-radius: 0 6px 6px 0; }
#LinkSectionID .middleColumn ul li.selected { border-bottom: 1px solid #C0C0C2; background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #c0c0c0), color-stop(100%, #e6e6e6)); background: -webkit-linear-gradient(#c0c0c0, #e6e6e6); background: -moz-linear-gradient(#c0c0c0, #e6e6e6); background: -o-linear-gradient(#c0c0c0, #e6e6e6); background: -ms-linear-gradient(#c0c0c0, #e6e6e6); background: linear-gradient(#c0c0c0, #e6e6e6); filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#C0C0C2', endColorstr='#E6E6E6'); /* IE6 & IE7 */ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#C0C0C2', endColorstr='#E6E6E6')"; /* IE8 */ box-shadow: 0 1px 1px 0 #A0A0A0 inset; }
#LinkSectionID .middleColumn ul li.selected :after { box-shadow: 0 1px 1px 0 #DDD; }
#LinkSectionID .middleColumn ul li label { display: table-cell; vertical-align: middle; text-align: center; padding: 0 10px; }
#SectionID .middleColumn { overflow: auto; min-width: 800px; }
#SectionID .middleColumn ul { padding: 0; }
#SectionID .middleColumn ul input[type="radio"] { display: none; }
#SectionID .middleColumn ul li { display: table; padding: 0; width: 125px; height: 40px; white-space: normal; margin-right: -1px; border-radius: 0; }
#SectionID .middleColumn ul li:first-child { border-radius: 6px 0 0 6px; border-left: 1px solid #C0C0C2; }
#SectionID .middleColumn ul li:last-child { border-radius: 0 6px 6px 0; }
#SectionID .middleColumn ul li.selected { border-bottom: 1px solid #C0C0C2; background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #c0c0c0), color-stop(100%, #e6e6e6)); background: -webkit-linear-gradient(#c0c0c0, #e6e6e6); background: -moz-linear-gradient(#c0c0c0, #e6e6e6); background: -o-linear-gradient(#c0c0c0, #e6e6e6); background: -ms-linear-gradient(#c0c0c0, #e6e6e6); background: linear-gradient(#c0c0c0, #e6e6e6); filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#C0C0C2', endColorstr='#E6E6E6'); /* IE6 & IE7 */ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#C0C0C2', endColorstr='#E6E6E6')"; /* IE8 */ box-shadow: 0 1px 1px 0 #A0A0A0 inset; }
#SectionID .middleColumn ul li.selected :after { box-shadow: 0 1px 1px 0 #DDD; }
#SectionID .middleColumn ul li label { display: table-cell; vertical-align: middle; text-align: center; padding: 0 10px; }
#Form_ItemEditForm h3:first-child { display: inline-block; float: left; }
#Form_ItemEditForm ul.SelectionGroup { display: inline-block; position: relative; padding: 0; margin-top: 9px; margin-left: 10px; }

View File

@ -16,14 +16,14 @@
}
});
$('#LinkSectionID ul li').entwine({
$('#SectionID ul li').entwine({
onadd: function() {
this.addClass('ui-button ss-ui-button ui-corner-all ui-state-default ui-widget ui-button-text-only');
this.parents('ul').removeClass('ui-tabs-nav');
}
});
$('#LinkSectionID input[type=radio]').entwine({
$('#SectionID input[type=radio]').entwine({
onadd: function() {
// Checks to see what radio button is selected
if (this.is(':checked')) {
@ -32,7 +32,7 @@
},
onchange: function(e) {
// Remove selected class from radio buttons
$('#LinkSectionID').find('li').removeClass('selected');
$('#SectionID').find('li').removeClass('selected');
//If radio button is checked then add the selected class
if (this.is(':checked')) {
this.parent('li').addClass('selected');

View File

@ -195,7 +195,7 @@ $gf_colour_zebra: #F0F4F7;
}
}
#LinkSectionID{
#SectionID{
@include tabButtons;
}