<!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" />
<title>[BuddyPress][6606] trunk/bp-groups: Add .min scripts for Groups Admin.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { 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 #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#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>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://buddypress.trac.wordpress.org/changeset/6606">6606</a></dd>
<dt>Author</dt> <dd>johnjamesjacoby</dd>
<dt>Date</dt> <dd>2012-12-10 14:04:33 +0000 (Mon, 10 Dec 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add .min scripts for Groups Admin. Fix bug in min filenames. Fixes <a href="http://buddypress.trac.wordpress.org/ticket/4617">#4617</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpgroupsadminjsadminjs">trunk/bp-groups/admin/js/admin.js</a></li>
<li><a href="#trunkbpgroupsbpgroupsadminphp">trunk/bp-groups/bp-groups-admin.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkbpgroupsadmincssadminmincss">trunk/bp-groups/admin/css/admin.min.css</a></li>
<li><a href="#trunkbpgroupsadminjsadminminjs">trunk/bp-groups/admin/js/admin.min.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpgroupsadmincssadminmincss"></a>
<div class="addfile"><h4>Added: trunk/bp-groups/admin/css/admin.min.css (0 => 6606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/admin/css/admin.min.css                                (rev 0)
+++ trunk/bp-groups/admin/css/admin.min.css        2012-12-10 14:04:33 UTC (rev 6606)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+#bp-groups-edit-form input{outline:medium none;padding:3px 8px}#bp-groups-edit-form input#bp-groups-name{font-size:1.7em;width:100%}#bp-groups-edit-form input#bp-groups-new-members{width:100%;max-width:90%;border:0}.bp-groups-settings-section{margin-bottom:15px}ul.bp-group-delete-list{list-style-type:disc;margin:4px 26px}
</ins><span class="cx">\ No newline at end of file
</span><span class="cx">Property changes on: trunk/bp-groups/admin/css/admin.min.css
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkbpgroupsadminjsadminjs"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups/admin/js/admin.js (6605 => 6606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/admin/js/admin.js        2012-12-10 13:39:30 UTC (rev 6605)
+++ trunk/bp-groups/admin/js/admin.js        2012-12-10 14:04:33 UTC (rev 6606)
</span><span class="lines">@@ -21,8 +21,7 @@
</span><span class="cx">                         position:  ( 'undefined' !== typeof isRtl &amp;&amp; isRtl ) ? { my: 'right top', at: 'right bottom', offset: '0, -1' } : { offset: '0, -1' },
</span><span class="cx">                         open:      function() { $(this).addClass('open'); },
</span><span class="cx">                         close:     function() { $(this).removeClass('open'); $(this).val(''); },
</span><del>-                        select:    function( event, ui ) { add_member_to_list( event, ui ); },
-
</del><ins>+                        select:    function( event, ui ) { add_member_to_list( event, ui ); }
</ins><span class="cx">                 });
</span><span class="cx">                 
</span><span class="cx">                 /* Replace noscript placeholder */
</span></span></pre></div>
<a id="trunkbpgroupsadminjsadminminjs"></a>
<div class="addfile"><h4>Added: trunk/bp-groups/admin/js/admin.min.js (0 => 6606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/admin/js/admin.min.js                                (rev 0)
+++ trunk/bp-groups/admin/js/admin.min.js        2012-12-10 14:04:33 UTC (rev 6606)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+(function(c){function b(h,f){var g=&quot;bp-groups-remove-new-member-&quot;+f.item.value;c(&quot;#bp-groups-new-members-list&quot;).append('&lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;bp-groups-remove-new-member&quot; id=&quot;'+g+'&quot;&gt;x&lt;/a&gt; '+f.item.label+&quot;&lt;/li&gt;&quot;);c(&quot;#&quot;+g).bind(&quot;click&quot;,function(i){a(i);return false});c(&quot;#bp-groups-new-members-list&quot;).after('&lt;input name=&quot;new_members[]&quot; type=&quot;hidden&quot; value=&quot;'+f.item.value+'&quot; /&gt;')}function a(f){c(f.target).closest(&quot;li&quot;).remove()}var d=&quot;undefined&quot;!==typeof group_members?&quot;&amp;group_members=&quot;+group_members:&quot;&quot;;c(document).ready(function(){c(&quot;.bp-suggest-user&quot;).autocomplete({source:ajaxurl+&quot;?action=bp_group_admin_member_autocomplete&quot;+d,delay:500,minLength:2,position:(&quot;undefined&quot;!==typeof isRtl&amp;&amp;isRtl)?{my:&quot;right top&quot;,at:&quot;right bottom
 &quot;,offset:&quot;0, -1&quot;}:{offset:&quot;0, -1&quot;},open:function(){c(this).addClass(&quot;open&quot;)},close:function(){c(this).removeClass(&quot;open&quot;);c(this).val(&quot;&quot;)},select:function(e,f){b(e,f)}});c(&quot;#bp-groups-new-members&quot;).attr(&quot;placeholder&quot;,BP_Group_Admin.add_member_placeholder)})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span><span class="cx">Property changes on: trunk/bp-groups/admin/js/admin.min.js
</span><span class="cx">___________________________________________________________________
</span></span></pre></div>
<a id="svnmimetype"></a>
<div class="addfile"><h4>Added: svn:mime-type</h4></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4>Added: svn:eol-style</h4></div>
<a id="trunkbpgroupsbpgroupsadminphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups/bp-groups-admin.php (6605 => 6606)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/bp-groups-admin.php        2012-12-10 13:39:30 UTC (rev 6605)
+++ trunk/bp-groups/bp-groups-admin.php        2012-12-10 14:04:33 UTC (rev 6606)
</span><span class="lines">@@ -53,13 +53,13 @@
</span><span class="cx">  * @since 1.6
</span><span class="cx">  */
</span><span class="cx"> function bp_groups_admin_load() {
</span><del>-        global $bp, $bp_groups_list_table;
</del><ins>+        global $bp_groups_list_table;
</ins><span class="cx"> 
</span><span class="cx">         // Build redirection URL
</span><span class="cx">         $redirect_to = remove_query_arg( array( 'action', 'gid', 'deleted', 'error', 'updated', 'success_new', 'error_new', 'success_modified', 'error_modified' ), $_SERVER['REQUEST_URI'] );
</span><span class="cx"> 
</span><span class="cx">         // Decide whether to load the dev version of the CSS and JavaScript
</span><del>-        $min = defined( 'SCRIPT_DEBUG' ) &amp;&amp; SCRIPT_DEBUG ? '' : '.min';
</del><ins>+        $min = defined( 'SCRIPT_DEBUG' ) &amp;&amp; SCRIPT_DEBUG ? '' : 'min.';
</ins><span class="cx"> 
</span><span class="cx">         // Decide whether to load the index or edit screen
</span><span class="cx">         $doaction = ! empty( $_REQUEST['action'] ) ? $_REQUEST['action'] : '';
</span><span class="lines">@@ -232,7 +232,7 @@
</span><span class="cx"> 
</span><span class="cx">                 if ( ! empty( $user_names ) ) {
</span><span class="cx"> 
</span><del>-                        foreach( $user_names as $user_key =&gt; $user_name ) {
</del><ins>+                        foreach( array_values( $user_names ) as $user_name ) {
</ins><span class="cx">                                 $un = trim( $user_name );
</span><span class="cx"> 
</span><span class="cx">                                 // Make sure the user exists before attempting
</span><span class="lines">@@ -397,11 +397,9 @@
</span><span class="cx"> /**
</span><span class="cx">  * Display the single groups edit screen
</span><span class="cx">  *
</span><del>- * @global int $screen_layout_columns Number of columns shown on this admin page
</del><span class="cx">  * @since 1.7
</span><span class="cx">  */
</span><span class="cx"> function bp_groups_admin_edit() {
</span><del>-        global $screen_layout_columns;
</del><span class="cx"> 
</span><span class="cx">         if ( ! is_super_admin() )
</span><span class="cx">                 die( '-1' );
</span><span class="lines">@@ -458,8 +456,7 @@
</span><span class="cx">         $form_url = add_query_arg( 'action', 'save', $form_url );
</span><span class="cx"> 
</span><span class="cx">         // Call an action for plugins to modify the group before we display the edit form
</span><del>-        do_action_ref_array( 'bp_groups_admin_edit', array( &amp;$group ) );
-?&gt;
</del><ins>+        do_action_ref_array( 'bp_groups_admin_edit', array( &amp;$group ) ); ?&gt;
</ins><span class="cx"> 
</span><span class="cx">         &lt;div class=&quot;wrap&quot;&gt;
</span><span class="cx">                 &lt;?php screen_icon( 'buddypress-groups' ); ?&gt;
</span><span class="lines">@@ -890,6 +887,7 @@
</span><span class="cx">  * @since 1.6
</span><span class="cx">  */
</span><span class="cx"> class BP_Groups_List_Table extends WP_List_Table {
</span><ins>+
</ins><span class="cx">         /**
</span><span class="cx">          * What type of view is being displayed? e.g. &quot;All&quot;, &quot;Pending&quot;, &quot;Approved&quot;, &quot;Spam&quot;...
</span><span class="cx">          *
</span><span class="lines">@@ -978,9 +976,9 @@
</span><span class="cx">                 // We'll use the ids of group types for the 'include' param
</span><span class="cx">                 $this-&gt;group_type_ids = BP_Groups_Group::get_group_type_ids();
</span><span class="cx"> 
</span><ins>+                // Pass a dummy array if there are no groups of this type
</ins><span class="cx">                 $include = false;
</span><span class="cx">                 if ( 'all' != $this-&gt;view &amp;&amp; isset( $this-&gt;group_type_ids[ $this-&gt;view ] ) ) {
</span><del>-                        // Pass a dummy array if there are no groups of this type
</del><span class="cx">                         $include = ! empty( $this-&gt;group_type_ids[ $this-&gt;view ] ) ? $this-&gt;group_type_ids[ $this-&gt;view ] : array( 0 );
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="lines">@@ -1055,8 +1053,7 @@
</span><span class="cx">         function display() {
</span><span class="cx">                 extract( $this-&gt;_args );
</span><span class="cx"> 
</span><del>-                $this-&gt;display_tablenav( 'top' );
-        ?&gt;
</del><ins>+                $this-&gt;display_tablenav( 'top' ); ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                 &lt;table class=&quot;&lt;?php echo implode( ' ', $this-&gt;get_table_classes() ); ?&gt;&quot; cellspacing=&quot;0&quot;&gt;
</span><span class="cx">                         &lt;thead&gt;
</span><span class="lines">@@ -1088,8 +1085,11 @@
</span><span class="cx">          */
</span><span class="cx">         function single_row( $item ) {
</span><span class="cx">                 static $row_class = '';
</span><del>-                $row_class = ( $row_class == '' ? ' class=&quot;alternate&quot;' : '' );
</del><span class="cx"> 
</span><ins>+                if ( empty( $row_class ) ) {
+                        $row_class = ( $row_class == '' ) ? ' class=&quot;alternate&quot;' : '';
+                }
+
</ins><span class="cx">                 echo '&lt;tr' . $row_class . ' id=&quot;activity-' . esc_attr( $item['id'] ) . '&quot; data-parent_id=&quot;' . esc_attr( $item['id'] ) . '&quot; data-root_id=&quot;' . esc_attr( $item['id'] ) . '&quot;&gt;';
</span><span class="cx">                 echo $this-&gt;single_row_columns( $item );
</span><span class="cx">                 echo '&lt;/tr&gt;';
</span><span class="lines">@@ -1101,9 +1101,7 @@
</span><span class="cx">          * @since 1.7
</span><span class="cx">          */
</span><span class="cx">         function get_views() {
</span><del>-                $url_base = remove_query_arg( array( 'orderby', 'order', 'group_status' ), $_SERVER['REQUEST_URI'] );
-                //$redirect_to = remove_query_arg( array( 'activity_status', 'aid', 'deleted', 'error', 'spammed', 'unspammed', 'updated', ), $_SERVER['REQUEST_URI'] );
-        ?&gt;
</del><ins>+                $url_base = remove_query_arg( array( 'orderby', 'order', 'group_status' ), $_SERVER['REQUEST_URI'] ); ?&gt;
</ins><span class="cx">                 &lt;ul class=&quot;subsubsub&quot;&gt;
</span><span class="cx">                         &lt;li class=&quot;all&quot;&gt;&lt;a href=&quot;&lt;?php echo esc_attr( esc_url( $url_base ) ); ?&gt;&quot; class=&quot;&lt;?php if ( 'all' == $this-&gt;view ) echo 'current'; ?&gt;&quot;&gt;&lt;?php _e( 'All', 'buddypress' ); ?&gt;&lt;/a&gt; |&lt;/li&gt;
</span><span class="cx">                         &lt;li class=&quot;public&quot;&gt;&lt;a href=&quot;&lt;?php echo esc_attr( esc_url( add_query_arg( 'group_status', 'public', $url_base ) ) ); ?&gt;&quot; class=&quot;&lt;?php if ( 'public' == $this-&gt;view ) echo 'current'; ?&gt;&quot;&gt;&lt;?php printf( __( 'Public &lt;span class=&quot;count&quot;&gt;(%s)&lt;/span&gt;', 'buddypress' ), number_format_i18n( $this-&gt;group_counts['public'] ) ); ?&gt;&lt;/a&gt; |&lt;/li&gt;
</span></span></pre>
</div>
</div>

</body>
</html>