]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Extended profile - hide add button when not needed (regression)
authorZach Copley <zach@status.net>
Wed, 16 Mar 2011 06:58:45 +0000 (23:58 -0700)
committerZach Copley <zach@status.net>
Wed, 16 Mar 2011 06:58:45 +0000 (23:58 -0700)
plugins/ExtendedProfile/js/profiledetail.js

index fbcefe730d397d1f059c8afc79dd5c0c4d495e5b..7960cee83fc2714db26aa6315def350b1e78b311 100644 (file)
@@ -5,6 +5,7 @@ SN_EXTENDED.reorder = function(cls) {
     var divs = $('div[class=' + cls + ']');
 
     $(divs).each(function(i, div) {
+        $(div).find('a.add_row').hide();
         $(div).find('a.remove_row').show();
         SN_EXTENDED.replaceIndex(SN_EXTENDED.rowIndex(div), i);
     });