Advertisement
Guest User

Untitled

a guest
Jan 29th, 2014
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript" n:syntax="double">
  2.     $(document).ready(function() {
  3.         $("a[rel^='prettyPhoto']").prettyPhoto({
  4.             social_tools: false
  5.                     });
  6.  
  7.                     $('#file_upload').uploadify({
  8.             swf: '/admin-files/js/uploadify.swf',
  9.                         uploader: {{link uploadPhotos $place->place_id}},
  10.                         auto: true,
  11.                         buttonText: 'Vybrat soubory',
  12.                         height: 25,
  13.                         fileTypeDesc: 'Obrázky',
  14.                         fileTypeExts: '*.gif; *.jpg; *.png',
  15.                         fileSizeLimit: '8MB',
  16.                         onUploadSuccess: function(file, data, response) {
  17.                 if (!$('#nahrane-soubory').is(':visible')) {
  18.                                     $('#nahrane-soubory').css('display', 'block');
  19.                                                     }
  20.                                                     $('#nahrane-soubory').append(file.name + '<br>');
  21.                                                 },
  22.                                                 onQueueComplete: function() {
  23.                 alert('Všechny soubory byly nahrány. Pokud je chcete zobrazit, aktualizujte prosím stránku.');
  24.                             }
  25.                         });
  26.                     });
  27.  
  28.                     function editReview(item) {
  29.                        
  30.                                 }
  31.  
  32.     function deleteReview(reviewId) {
  33.         if (confirm('Opravdu chcete smazat tento příspěvek?')) {
  34.             location.href={{link deleteReviews!}} + "&reviewId=" + reviewId;
  35.         }
  36.     }
  37. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement