Changeset 4814
- Timestamp:
- 07/23/2011 02:17:43 PM (14 years ago)
- Location:
- trunk/bp-themes/bp-default/_inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/css/default.css
r4813 r4814 1090 1090 overflow: auto; 1091 1091 } 1092 1092 #aw-whats-new-submit { 1093 display: none; 1094 } 1095 #whats-new:focus { 1096 border-color: rgba(31, 179, 221, 0.9) !important; 1097 outline-color: rgba(31, 179, 221, 0.9); 1098 box-shadow: 0 0 7px rgba(31, 179, 221, 0.7); 1099 -moz-box-shadow: 0 0 7px rgba(31, 179, 221, 0.7); 1100 -webkit-box-shadow: 0 0 7px rgba(31, 179, 221, 0.7); 1101 } 1093 1102 1094 1103 /*-------------------------------------------------------------- … … 1540 1549 width: 90%; 1541 1550 } 1551 input[type="submit"].pending, 1552 input[type="button"].pending, 1553 input[type="reset"].pending, 1554 input[type="submit"].disabled, 1555 input[type="button"].disabled, 1556 input[type="reset"].disabled, 1542 1557 button.pending, 1543 1558 button.disabled, … … 1548 1563 cursor: default; 1549 1564 } 1565 input[type="submit"]:hover.pending, 1566 input[type="button"]:hover.pending, 1567 input[type="reset"]:hover.pending, 1568 input[type="submit"]:hover.disabled, 1569 input[type="button"]:hover.disabled, 1570 input[type="reset"]:hover.disabled, 1550 1571 button.pending:hover, 1551 1572 button.disabled:hover, -
trunk/bp-themes/bp-default/_inc/global.js
r4809 r4814 22 22 23 23 /* @mention Compose Scrolling */ 24 if ( jq.query.get('r') ) { 25 if ( jq('textarea#whats-new').length ) { 26 jq.scrollTo( jq('textarea#whats-new'), 500, { offset:-125, easing:'easeOutQuad' } ); 27 jq('textarea#whats-new').focus(); 28 } 24 if ( jq.query.get('r') && jq('textarea#whats-new').length ) { 25 jq.scrollTo( jq('textarea#whats-new'), 500, { offset:-125, easing:'easeOutQuad' } ); 26 jq('textarea#whats-new').focus(); 29 27 } 30 28 31 29 /**** Activity Posting ********************************************************/ 30 31 /* Textarea focus */ 32 jq('#whats-new').focus( function(){ jq("#aw-whats-new-submit").fadeIn(300); }); 32 33 33 34 /* New posts */ … … 77 78 form.prepend( response.substr( 2, response.length ) ); 78 79 jq( 'form#' + form.attr('id') + ' div.error').hide().fadeIn( 200 ); 79 button.prop("disabled", false);80 80 } else { 81 81 if ( 0 == jq("ul.activity-list").length ) { … … 109 109 jq("li.new-update").removeClass( 'new-update' ); 110 110 jq("textarea#whats-new").val(''); 111 112 /* Re-enable the submit button after 8 seconds. */ 113 setTimeout( function() { button.prop("disabled", false); }, 8000 ); 114 } 111 } 112 113 button.fadeOut(100, function(){ button.prop("disabled", false); }); 115 114 }); 116 115 … … 360 359 /* Hide any error messages */ 361 360 jq( 'form#' + form + ' div.error').hide(); 362 target.addClass('loading'); 363 target.prop('disabled', true); 361 target.addClass('loading').prop('disabled', true); 364 362 365 363 jq.post( ajaxurl, { … … 398 396 /* Increase the "Reply (X)" button count */ 399 397 jq('li#activity-' + form_id[2] + ' a.acomment-reply span').html( Number( jq('li#activity-' + form_id[2] + ' a.acomment-reply span').html() ) + 1 ); 400 401 /* Re-enable the submit button after 5 seconds. */402 setTimeout( function() { target.prop("disabled", false); }, 5000 );403 398 } 399 400 target.fadeOut(100, function(){ target.prop("disabled", false); }); 404 401 }); 405 402
Note: See TracChangeset
for help on using the changeset viewer.