Remove hardcoded #notice_action-submit from JS/CSS (prep for reusable notice forms)

This commit is contained in:
Brion Vibber 2011-03-03 17:48:16 -08:00
parent 9d40c8f835
commit cd20190ba5
26 changed files with 37 additions and 38 deletions

View File

@ -51,7 +51,6 @@ var SN = { // StatusNet
CommandResult: 'command_result',
FormNotice: 'form_notice',
NoticeInReplyTo: 'notice_in-reply-to',
NoticeActionSubmit: 'notice_action-submit',
NoticeLat: 'notice_data-lat',
NoticeLon: 'notice_data-lon',
NoticeLocationId: 'notice_data-location_id',
@ -336,7 +335,7 @@ var SN = { // StatusNet
}
form
.addClass(SN.C.S.Processing)
.find('#'+SN.C.S.NoticeActionSubmit)
.find('.submit')
.addClass(SN.C.S.Disabled)
.attr(SN.C.S.Disabled, SN.C.S.Disabled);
@ -347,7 +346,7 @@ var SN = { // StatusNet
error: function (xhr, textStatus, errorThrown) {
form
.removeClass(SN.C.S.Processing)
.find('#'+SN.C.S.NoticeActionSubmit)
.find('.submit')
.removeClass(SN.C.S.Disabled)
.removeAttr(SN.C.S.Disabled, SN.C.S.Disabled);
removeFeedback();
@ -429,7 +428,7 @@ var SN = { // StatusNet
complete: function(xhr, textStatus) {
form
.removeClass(SN.C.S.Processing)
.find('#'+SN.C.S.NoticeActionSubmit)
.find('.submit')
.removeAttr(SN.C.S.Disabled)
.removeClass(SN.C.S.Disabled);

2
js/util.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -121,7 +121,7 @@ background:none;
opacity:1;
}
#form_notice #notice_action-submit {
#form_notice .submit {
width:20%;
right:2%;
text-align:center;

View File

@ -626,7 +626,7 @@ font-weight:bold;
line-height:1.15;
padding:1px 2px;
}
.form_notice #notice_action-submit {
.form_notice .submit {
width:14%;
height:47px;
padding:0;

View File

@ -22,7 +22,7 @@ height:16px;
width:16px;
display:block;
}
.form_notice #notice_action-submit {
.form_notice .submit {
width:17%;
max-width:17%;
}

View File

@ -495,7 +495,7 @@ font-weight:bold;
line-height:1.15;
padding:1px 2px;
}
#form_notice #notice_action-submit {
#form_notice .submit {
width:14%;
height:47px;
padding:0;

View File

@ -124,7 +124,7 @@ address {
top: 52px;
}
.form_notice #notice_action-submit {
.form_notice .submit {
font-size: 0.9em;
top: 80px;
right:0;

View File

@ -18,7 +18,7 @@ display:block;
left: 390px;
top: 27px;
}
.form_notice #notice_action-submit {
.form_notice .submit {
width: 96px;
max-width: 96px;
}

View File

@ -107,7 +107,7 @@ background:none;
opacity:1;
}
.form_notice #notice_action-submit {
.form_notice .submit {
text-align: center;
left: 230px;
top: 32px;
@ -115,7 +115,7 @@ opacity:1;
font-size: 0.8em;
}
#form_notice-direct.form_notice #notice_action-submit {
#form_notice-direct.form_notice .submit {
top: 62px;
}

View File

@ -173,7 +173,7 @@ address {
right: 86px;
}
.form_notice #notice_action-submit {
.form_notice .submit {
font-size: 0.9em;
top: 80px;
right: -2px;
@ -409,7 +409,7 @@ div.entry-content a.response:after {
border: 1px solid #7B4E82;
}
.entity_send-a-message .form_notice #notice_action-submit {
.entity_send-a-message .form_notice .submit {
color: #fff !important;
top: 46px;
}
@ -589,7 +589,7 @@ padding-right:0;
width: 325px !important;
}
.realtime-popup .form_notice #notice_action-submit {
.realtime-popup .form_notice .submit {
top: 59px !important;
right: 6px !important;
}

View File

@ -18,7 +18,7 @@ display:block;
left: 390px;
top: 27px;
}
.form_notice #notice_action-submit {
.form_notice .submit {
width: 106px;
max-width: 106px;
}

View File

@ -112,7 +112,7 @@ background:none;
opacity:1;
}
.form_notice #notice_action-submit {
.form_notice .submit {
text-align: center;
left: 230px;
top: 32px;
@ -120,7 +120,7 @@ opacity:1;
font-size: 0.8em;
}
#form_notice-direct.form_notice #notice_action-submit {
#form_notice-direct.form_notice .submit {
top: 62px;
}

View File

@ -524,7 +524,7 @@ font-weight:bold;
line-height:1.15;
padding:1px 2px;
}
.form_notice #notice_action-submit {
.form_notice .submit {
width:14%;
height:47px;
padding:0;
@ -1794,7 +1794,7 @@ background:transparent url(../../base/images/icons/twotone/green/clip-01.gif) no
opacity:0;
}
#form_notice.processing #notice_action-submit {
#form_notice.processing .submit {
background:#fff url(../../base/images/icons/icon_processing.gif) no-repeat 47% 47%;
cursor:wait;
text-indent:-9999px;

View File

@ -39,7 +39,7 @@ filter: alpha(opacity = 0);
left:33.5%;
}
#form_notice #notice_action-submit {
#form_notice .submit {
right:0;
}

View File

@ -447,7 +447,7 @@ font-weight:bold;
line-height:1.15;
padding:1px 2px;
}
#form_notice #notice_action-submit {
#form_notice .submit {
width:14%;
height:47px;
padding:0;

View File

@ -88,7 +88,7 @@ color:#0f0;
#form_notice.warning .count {
color:#000;
}
#form_notice.processing #notice_action-submit {
#form_notice.processing .submit {
background:#ccc url(../../base/images/icons/icon_processing.gif) no-repeat 47% 47%;
cursor:wait;
text-indent:-9999px;

View File

@ -969,7 +969,7 @@ font-family: 'TeXGyreHerosBold', sans-serif;
line-height:1.15;
padding:1px 2px;
}
.form_notice #notice_action-submit {
.form_notice .submit {
width:14%;
height:47px;
padding:0;

View File

@ -29,7 +29,7 @@ height:16px;
width:16px;
display:block;
}
.form_notice #notice_action-submit {
.form_notice .submit {
width:17%;
max-width:17%;
}

View File

@ -127,7 +127,7 @@ background:none;
opacity:1;
}
#form_notice #notice_action-submit {
#form_notice .submit {
width:20%;
right:2%;
text-align:center;

View File

@ -482,7 +482,7 @@ font-weight:bold;
line-height:1.15;
padding:1px 2px;
}
#form_notice #notice_action-submit {
#form_notice .submit {
width:14%;
height:47px;
padding:0;

View File

@ -265,7 +265,7 @@ address .poweredby {
color: #ff0000;
}
.form_notice #notice_action-submit {
.form_notice .submit {
padding:0;
position:absolute;
right:0;
@ -1454,7 +1454,7 @@ margin-bottom:11px;
.entity_send-a-message .form_notice select {
display:none;
}
.entity_send-a-message .form_notice #notice_action-submit {
.entity_send-a-message .form_notice .submit {
position: absolute;
top: 52px;
right: 0px;
@ -1717,7 +1717,7 @@ body.realtime-popup {
width: 340px !important;
}
.realtime-popup .form_notice #notice_action-submit {
.realtime-popup .form_notice .submit {
top: 58px !important;
height: 2em;
font-size: 0.8em;

View File

@ -17,7 +17,7 @@ width:16px;
display:block;
top: 30px;
}
.form_notice #notice_action-submit {
.form_notice .submit {
width: 106px;
max-width: 106px;
}

View File

@ -242,7 +242,7 @@ h6 {font-size: 1em;}
right: 86px;
}
.form_notice #notice_action-submit {
.form_notice .submit {
top: 79px;
right: 0;
width: 102px;
@ -250,7 +250,7 @@ h6 {font-size: 1em;}
height: 2.2em;
}
.entity_send-a-message .form_notice #notice_action-submit {
.entity_send-a-message .form_notice .submit {
color: #fff !important;
}

View File

@ -19,7 +19,7 @@ display:block;
top: 27px;
right: 88px;
}
.form_notice #notice_action-submit {
.form_notice .submit {
width: 96px;
max-width: 96px;
}

View File

@ -112,7 +112,7 @@ background:none;
opacity:1;
}
.form_notice #notice_action-submit {
.form_notice .submit {
text-align: center;
left: 230px;
top: 34px;
@ -120,7 +120,7 @@ opacity:1;
font-size: 0.8em;
}
#form_notice-direct.form_notice #notice_action-submit {
#form_notice-direct.form_notice .submit {
top: 64px;
}

View File

@ -122,7 +122,7 @@ background:none;
opacity:1;
}
#form_notice #notice_action-submit {
#form_notice .submit {
width:20%;
right:2%;
text-align:center;