]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Unnecessary JavaScript for notice form attachment
authorSarven Capadisli <csarven@controlyourself.ca>
Mon, 1 Jun 2009 19:20:12 +0000 (15:20 -0400)
committerSarven Capadisli <csarven@controlyourself.ca>
Mon, 1 Jun 2009 19:20:12 +0000 (15:20 -0400)
js/util.js

index acf44a17c78d9f27fb8cadb76b290652b7dbef9c..20f17f6e76ea3237f97c1a89afc32059cb4bc976 100644 (file)
  */
 
 $(document).ready(function(){
-    $('input#notice_data-attach').toggle();
-    $('label[for=notice_data-attach]').text('Upload a file as an attachment?');
-    $('label[for=notice_data-attach]').click(function () {
-        if ('Upload a file as an attachment?' == $(this).text()) {
-            $(this).text('Upload: ');
-            $('input#notice_data-attach').slideDown('fast');
-        } else {
-            $('input#notice_data-attach').slideUp('fast', function() {$('label[for=notice_data-attach]').text('Upload a file as an attachment?');});
-        }
-    });
-
     $('a.attachment').click(function() {$().jOverlay({url: $('address .url')[0].href+'/attachment/' + ($(this).attr('id').substring('attachment'.length + 1)) + '/ajax'}); return false; });
     $("a.thumbnail").hover(
         function() {