<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[BuddyPress] [1926] trunk: Removing deprecated widget CSS now in theme.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>1926</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2009-09-23 00:57:08 +0000 (Wed, 23 Sep 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Removing deprecated widget CSS now in theme. Reducing the number of http requests on each page load.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpactivitybpactivitywidgetsphp">trunk/bp-activity/bp-activity-widgets.php</a></li>
<li><a href="#trunkbpblogsbpblogswidgetsphp">trunk/bp-blogs/bp-blogs-widgets.php</a></li>
<li><a href="#trunkbpcorebpcorewidgetsphp">trunk/bp-core/bp-core-widgets.php</a></li>
<li><a href="#trunkbpgroupsbpgroupswidgetsphp">trunk/bp-groups/bp-groups-widgets.php</a></li>
<li><a href="#trunkbpthemesbpsnparent_incjsajaxjs">trunk/bp-themes/bp-sn-parent/_inc/js/ajax.js</a></li>
<li><a href="#trunkbpthemesbpsnparent_incjsgeneraljs">trunk/bp-themes/bp-sn-parent/_inc/js/general.js</a></li>
<li><a href="#trunkbpthemesbpsnparentfunctionsphp">trunk/bp-themes/bp-sn-parent/functions.php</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li>trunk/bp-activity/css/</li>
<li>trunk/bp-blogs/css/</li>
<li>trunk/bp-groups/css/</li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpactivitybpactivitywidgetsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/bp-activity-widgets.php (1925 => 1926)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/bp-activity-widgets.php        2009-09-23 00:33:11 UTC (rev 1925)
+++ trunk/bp-activity/bp-activity-widgets.php        2009-09-23 00:57:08 UTC (rev 1926)
</span><span class="lines">@@ -9,7 +9,6 @@
</span><span class="cx"> class BP_Activity_Widget extends WP_Widget {
</span><span class="cx">         function bp_activity_widget() {
</span><span class="cx">                 parent::WP_Widget( false, $name = __( 'Site Wide Activity', 'buddypress' ) );
</span><del>-                wp_enqueue_style( 'bp-activity-widget-activity-css', BP_PLUGIN_URL . '/bp-activity/css/widget-activity.css' );                
</del><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         function widget($args, $instance) {
</span></span></pre></div>
<a id="trunkbpblogsbpblogswidgetsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-blogs/bp-blogs-widgets.php (1925 => 1926)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-blogs/bp-blogs-widgets.php        2009-09-23 00:33:11 UTC (rev 1925)
+++ trunk/bp-blogs/bp-blogs-widgets.php        2009-09-23 00:57:08 UTC (rev 1926)
</span><span class="lines">@@ -9,7 +9,6 @@
</span><span class="cx"> class BP_Blogs_Recent_Posts_Widget extends WP_Widget {
</span><span class="cx">         function bp_blogs_recent_posts_widget() {
</span><span class="cx">                 parent::WP_Widget( false, $name = __( 'Recent Site Wide Posts', 'buddypress' ) );
</span><del>-                wp_enqueue_style( 'bp-blogs-widget-posts-css', BP_PLUGIN_URL . '/bp-blogs/css/widget-blogs.css' );                
</del><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         function widget($args, $instance) {
</span></span></pre></div>
<a id="trunkbpcorebpcorewidgetsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-widgets.php (1925 => 1926)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-widgets.php        2009-09-23 00:33:11 UTC (rev 1925)
+++ trunk/bp-core/bp-core-widgets.php        2009-09-23 00:57:08 UTC (rev 1926)
</span><span class="lines">@@ -71,8 +71,9 @@
</span><span class="cx"> class BP_Core_Members_Widget extends WP_Widget {
</span><span class="cx">         function bp_core_members_widget() {
</span><span class="cx">                 parent::WP_Widget( false, $name = __( 'Members', 'buddypress' ) );
</span><del>-                wp_enqueue_script( 'bp_core_widget_members-js', BP_PLUGIN_URL . '/bp-core/js/widget-members.js', array('jquery', 'jquery-livequery-pack') );                
-                wp_enqueue_style( 'bp_core_widget_members-css', BP_PLUGIN_URL . '/bp-core/css/widget-members.css' );
</del><ins>+
+                if ( is_active_widget( false, false, $this-&gt;id_base ) )
+                        wp_enqueue_script( 'bp_core_widget_members-js', BP_PLUGIN_URL . '/bp-core/js/widget-members.js', array('jquery', 'jquery-livequery-pack') );                
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         function widget($args, $instance) {
</span></span></pre></div>
<a id="trunkbpgroupsbpgroupswidgetsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups/bp-groups-widgets.php (1925 => 1926)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/bp-groups-widgets.php        2009-09-23 00:33:11 UTC (rev 1925)
+++ trunk/bp-groups/bp-groups-widgets.php        2009-09-23 00:57:08 UTC (rev 1926)
</span><span class="lines">@@ -12,8 +12,8 @@
</span><span class="cx">         function bp_groups_widget() {
</span><span class="cx">                 parent::WP_Widget( false, $name = __( 'Groups', 'buddypress' ) );
</span><span class="cx">                 
</span><del>-                wp_enqueue_script( 'groups_widget_groups_list-js', BP_PLUGIN_URL . '/bp-groups/js/widget-groups.js', array('jquery', 'jquery-livequery-pack') );                
-                wp_enqueue_style( 'groups_widget_members-css', BP_PLUGIN_URL . '/bp-groups/css/widget-groups.css' );                
</del><ins>+                if ( is_active_widget( false, false, $this-&gt;id_base ) )
+                        wp_enqueue_script( 'groups_widget_groups_list-js', BP_PLUGIN_URL . '/bp-groups/js/widget-groups.js', array('jquery', 'jquery-livequery-pack') );                
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         function widget($args, $instance) {
</span></span></pre></div>
<a id="trunkbpthemesbpsnparent_incjsajaxjs"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-sn-parent/_inc/js/ajax.js (1925 => 1926)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-sn-parent/_inc/js/ajax.js        2009-09-23 00:33:11 UTC (rev 1925)
+++ trunk/bp-themes/bp-sn-parent/_inc/js/ajax.js        2009-09-23 00:57:08 UTC (rev 1926)
</span><span class="lines">@@ -1,3 +1,5 @@
</span><ins>+// AJAX Functions
+
</ins><span class="cx"> jQuery(document).ready( function() {
</span><span class="cx">         var j = jQuery;
</span><span class="cx"> 
</span><span class="lines">@@ -1123,5 +1125,32 @@
</span><span class="cx">                 }
</span><span class="cx">         );
</span><span class="cx"> 
</span><ins>+});
</ins><span class="cx"> 
</span><del>-});
</del><span class="cx">\ No newline at end of file
</span><ins>+// Helper JS Functions
+
+function checkAll() {
+        var checkboxes = document.getElementsByTagName(&quot;input&quot;);
+        for(var i=0; i&lt;checkboxes.length; i++) {
+                if(checkboxes[i].type == &quot;checkbox&quot;) {
+                        if($(&quot;check_all&quot;).checked == &quot;&quot;) {
+                                checkboxes[i].checked = &quot;&quot;;
+                        }
+                        else {
+                                checkboxes[i].checked = &quot;checked&quot;;
+                        }
+                }
+        }
+}
+
+function clear(container) {
+        if(!document.getElementById(container)) return false;
+
+        var container = document.getElementById(container);
+
+        radioButtons = container.getElementsByTagName('INPUT');
+
+        for(var i=0; i&lt;radioButtons.length; i++) {
+                radioButtons[i].checked = false;
+        }        
+}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkbpthemesbpsnparent_incjsgeneraljs"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-sn-parent/_inc/js/general.js (1925 => 1926)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-sn-parent/_inc/js/general.js        2009-09-23 00:33:11 UTC (rev 1925)
+++ trunk/bp-themes/bp-sn-parent/_inc/js/general.js        2009-09-23 00:57:08 UTC (rev 1926)
</span><span class="lines">@@ -1,25 +0,0 @@
</span><del>-function checkAll() {
-        var checkboxes = document.getElementsByTagName(&quot;input&quot;);
-        for(var i=0; i&lt;checkboxes.length; i++) {
-                if(checkboxes[i].type == &quot;checkbox&quot;) {
-                        if($(&quot;check_all&quot;).checked == &quot;&quot;) {
-                                checkboxes[i].checked = &quot;&quot;;
-                        }
-                        else {
-                                checkboxes[i].checked = &quot;checked&quot;;
-                        }
-                }
-        }
-}
-
-function clear(container) {
-        if(!document.getElementById(container)) return false;
-
-        var container = document.getElementById(container);
-
-        radioButtons = container.getElementsByTagName('INPUT');
-
-        for(var i=0; i&lt;radioButtons.length; i++) {
-                radioButtons[i].checked = false;
-        }        
-}
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkbpthemesbpsnparentfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-sn-parent/functions.php (1925 => 1926)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-sn-parent/functions.php        2009-09-23 00:33:11 UTC (rev 1925)
+++ trunk/bp-themes/bp-sn-parent/functions.php        2009-09-23 00:57:08 UTC (rev 1926)
</span><span class="lines">@@ -47,7 +47,6 @@
</span><span class="cx"> /* Load the javascript for the theme */
</span><span class="cx"> wp_enqueue_script( 'jquery-livequery-pack', get_template_directory_uri() . '/_inc/js/jquery-livequery.js', array( 'jquery' ) );
</span><span class="cx"> wp_enqueue_script( 'dtheme-ajax-js', get_template_directory_uri() . '/_inc/js/ajax.js', array( 'jquery', 'jquery-livequery-pack' ) );
</span><del>-wp_enqueue_script( 'dtheme-general-js', get_template_directory_uri() . '/_inc/js/general.js', array( 'jquery', 'jquery-livequery-pack' ) );
</del><span class="cx"> 
</span><span class="cx"> /* Make sure the blog index page shows under /[HOME_BLOG_SLUG] if enabled */
</span><span class="cx"> function bp_dtheme_show_home_blog() {
</span></span></pre>
</div>
</div>

</body>
</html>