Changeset 4884
- Timestamp:
- 07/28/2011 03:52:10 AM (15 years ago)
- Location:
- trunk/bp-themes/bp-default
- Files:
-
- 3 edited
-
_inc/css/default.css (modified) (9 diffs)
-
_inc/global.js (modified) (5 diffs)
-
functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/css/default.css
r4871 r4884 28 28 6.1.2 - Activity Comments 29 29 6.2 - Admin Bar 30 6.3 - Ajax Loading31 6.4 - Directories - Members, Groups, Blogs, Forums32 6.5 - Error / Success Messages33 6.6 - Forms30 6.3 - Directories - Members, Groups, Blogs, Forums 31 6.4 - Error / Success Messages 32 6.5 - Forms 33 6.6 - Ajax Loading 34 34 6.7 - Topics and Tables - Forums and General 35 35 6.8 - Headers, Lists and Tabs - Activity, Groups, Blogs, Forums … … 1042 1042 border-bottom: 1px solid #ddd; 1043 1043 margin: 20px 0 10px; 1044 padding-bottom: 20px; 1044 1045 } 1045 1046 .home-page form#whats-new-form { … … 1071 1072 font-family: inherit; 1072 1073 font-size: 14px; 1073 height: 50px;1074 height: 20px; 1074 1075 padding: 6px; 1075 1076 width: 98%; … … 1084 1085 } 1085 1086 #whats-new-options { 1086 margin-bottom: 18px;1087 1087 overflow: auto; 1088 } 1089 #aw-whats-new-submit { 1090 display: none; 1088 height: 0; 1091 1089 } 1092 1090 #whats-new:focus { … … 1466 1464 1467 1465 /*-------------------------------------------------------------- 1468 6.3 - Ajax Loading 1469 --------------------------------------------------------------*/ 1470 a.loading, 1471 input.loading { 1472 background-image: url( ../images/ajax-loader.gif ) !important; 1473 background-position: 95% 50% !important; 1474 background-repeat: no-repeat !important; 1475 padding-right: 25px !important; 1476 } 1477 1478 1479 /*-------------------------------------------------------------- 1480 6.4 - Directories - Members, Groups, Blogs, Forums 1466 6.3 - Directories - Members, Groups, Blogs, Forums 1481 1467 --------------------------------------------------------------*/ 1482 1468 div.dir-search { … … 1491 1477 1492 1478 /*-------------------------------------------------------------- 1493 6. 5- Errors / Success Messages1479 6.4 - Errors / Success Messages 1494 1480 --------------------------------------------------------------*/ 1495 1481 div#message { … … 1528 1514 width: 90%; 1529 1515 } 1530 input[type="submit"].pending,1531 input[type="button"].pending,1532 input[type="reset"].pending,1533 input[type="submit"].disabled,1534 input[type="button"].disabled,1535 input[type="reset"].disabled,1536 button.pending,1537 button.disabled,1538 div.pending a,1539 a.disabled {1540 border-color: #eee;1541 color: #bbb;1542 cursor: default;1543 }1544 input[type="submit"]:hover.pending,1545 input[type="button"]:hover.pending,1546 input[type="reset"]:hover.pending,1547 input[type="submit"]:hover.disabled,1548 input[type="button"]:hover.disabled,1549 input[type="reset"]:hover.disabled,1550 button.pending:hover,1551 button.disabled:hover,1552 div.pending a:hover,1553 a.disabled:hover {1554 border-color: #eee;1555 color: #bbb;1556 }1557 1516 div.accept, 1558 1517 div.reject { … … 1570 1529 1571 1530 /*-------------------------------------------------------------- 1572 6. 6- Forms1531 6.5 - Forms 1573 1532 --------------------------------------------------------------*/ 1574 1533 .standard-form textarea, … … 1750 1709 1751 1710 /*-------------------------------------------------------------- 1711 6.6 - Ajax Loading 1712 --------------------------------------------------------------*/ 1713 a.loading, 1714 input.loading { 1715 background-image: url( ../images/ajax-loader.gif ), -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0)); 1716 background-image: url( ../images/ajax-loader.gif ), -moz-linear-gradient(top, #fff, #e0e0e0); 1717 background-position: 95% 50%; 1718 background-repeat: no-repeat; 1719 padding-right: 25px; 1720 } 1721 a.loading:hover, 1722 input.loading:hover { 1723 background-image: url( ../images/ajax-loader.gif ), -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0)); 1724 background-image: url( ../images/ajax-loader.gif ), -moz-linear-gradient(top, #fff, #e0e0e0); 1725 background-position: 95% 50%; 1726 background-repeat: no-repeat; 1727 padding-right: 25px; 1728 border: 1px solid #ccc; 1729 color: #777; 1730 } 1731 input[type="submit"].pending, 1732 input[type="button"].pending, 1733 input[type="reset"].pending, 1734 input[type="submit"].disabled, 1735 input[type="button"].disabled, 1736 input[type="reset"].disabled, 1737 button.pending, 1738 button.disabled, 1739 div.pending a, 1740 a.disabled { 1741 border-color: #eee; 1742 color: #bbb; 1743 cursor: default; 1744 } 1745 input[type="submit"]:hover.pending, 1746 input[type="button"]:hover.pending, 1747 input[type="reset"]:hover.pending, 1748 input[type="submit"]:hover.disabled, 1749 input[type="button"]:hover.disabled, 1750 input[type="reset"]:hover.disabled, 1751 button.pending:hover, 1752 button.disabled:hover, 1753 div.pending a:hover, 1754 a.disabled:hover { 1755 background: -webkit-gradient(linear, left top, left bottom, from(white), to(#ededed)); 1756 border-color: #eee; 1757 color: #bbb; 1758 } 1759 1760 1761 /*-------------------------------------------------------------- 1752 1762 6.7 - Forums, Tables and Topics 1753 1763 --------------------------------------------------------------*/ -
trunk/bp-themes/bp-default/_inc/global.js
r4866 r4884 31 31 32 32 /* Textarea focus */ 33 jq('#whats-new').focus( function(){ jq("#aw-whats-new-submit").fadeIn(300); }); 33 jq('#whats-new').focus( function(){ 34 jq("#whats-new-options").animate({height:'40px'}); 35 jq("form#whats-new-form textarea").animate({height:'50px'}); 36 jq("#aw-whats-new-submit").prop("disabled", false); 37 }); 34 38 35 39 /* New posts */ … … 66 70 'item_id': item_id 67 71 }, 68 function(response) 69 { 70 button.removeClass('loading'); 72 function(response) { 71 73 72 74 form.children().each( function() { 73 if ( jq.nodeName(this, "textarea") || jq.nodeName(this, "input") ) 75 if ( jq.nodeName(this, "textarea") || jq.nodeName(this, "input") ) { 74 76 jq(this).prop( 'disabled', false ); 77 } 75 78 }); 76 79 … … 112 115 } 113 116 114 button.fadeOut(100, function(){ button.prop("disabled", false); }); 117 jq("#whats-new-options").animate({height:'0px'}); 118 jq("form#whats-new-form textarea").animate({height:'20px'}); 119 jq("#aw-whats-new-submit").prop("disabled", true).removeClass('loading'); 115 120 }); 116 121 … … 214 219 /* Delete activity stream items */ 215 220 if ( target.hasClass('delete-activity') ) { 216 var li = target.parents('div.activity ul li');217 var id = li.attr('id').substr( 9, li.attr('id').length );221 var li = target.parents('div.activity ul li'); 222 var id = li.attr('id').substr( 9, li.attr('id').length ); 218 223 var link_href = target.attr('href'); 219 220 var nonce = link_href.split('_wpnonce='); 221 nonce = nonce[1];224 var nonce = link_href.split('_wpnonce='); 225 226 nonce = nonce[1]; 222 227 223 228 target.addClass('loading'); … … 230 235 }, 231 236 function(response) { 232 target.removeClass('loading');233 237 234 238 if ( response[0] + response[1] == '-1' ) { 235 239 li.prepend( response.substr( 2, response.length ) ); 236 li.children('div#message').hide().fadeIn( 200);240 li.children('div#message').hide().fadeIn(300); 237 241 } else { 238 li.slideUp( 200);242 li.slideUp(300); 239 243 } 240 244 }); -
trunk/bp-themes/bp-default/functions.php
r4861 r4884 135 135 */ 136 136 function bp_dtheme_enqueue_scripts() { 137 wp_enqueue_script( 'dtheme-ajax-js', get_template_directory_uri() . '/_inc/global.js', array( 'jquery' ), '20110723' ); 137 138 // Bump this when changes are made to bust cache 139 $version = '20110727'; 140 141 // Enqueue the global JS - Ajax will not work without it 142 wp_enqueue_script( 'dtheme-ajax-js', get_template_directory_uri() . '/_inc/global.js', array( 'jquery' ), $version ); 138 143 139 144 // Add words that we need to use in JS to the end of the page so they can be translated and still used. … … 163 168 function bp_dtheme_enqueue_styles() { 164 169 170 // Bump this when changes are made to bust cache 171 $version = '20110727'; 172 165 173 // Default CSS 166 wp_enqueue_style( 'bp-default-main', get_template_directory_uri() . '/_inc/css/default.css', array(), '20110723');174 wp_enqueue_style( 'bp-default-main', get_template_directory_uri() . '/_inc/css/default.css', array(), $version ); 167 175 168 176 // Right to left CSS 169 177 if ( is_rtl() ) 170 wp_enqueue_style( 'bp-default-main-rtl', get_template_directory_uri() . '/_inc/css/default-rtl.css', array( 'bp-default-main' ), '20110723');178 wp_enqueue_style( 'bp-default-main-rtl', get_template_directory_uri() . '/_inc/css/default-rtl.css', array( 'bp-default-main' ), $version ); 171 179 } 172 180 add_action( 'wp_print_styles', 'bp_dtheme_enqueue_styles' );
Note: See TracChangeset
for help on using the changeset viewer.