Exemplo n.º 1
0
    			
    			
    			<br style="clear:both">
    		</div>
    	</div>
    	<br style="clear:both">
    </div>
    <script>
		$(document).ready(function() {
			
			<?php 
echo insertFormAjax('formUserInfo');
?>
		    
		    <?php 
echo insertFormAjax('formPassword', 'true');
?>
		    
		    
			
			
			$('li.active').siblings().show();
			$('.del').click(function() {
				var listing_id = $(this).attr("id");
				$.get("ajax/watchlist.php?action=unwatch&id=" + listing_id);
				$(this).closest("tr").hide();
				return false;
			});
			$(".nuclear-link").click(function() {
				var hash = '#' + $(this).attr("tab");
				$('.side-nav').find('a').filter('[href=' + hash + ']').click();
Exemplo n.º 2
0
?>
" />
	                <input type="hidden" name="submit" value="true" />
	                <input type="submit" id="uploadSubmit" style="position:absolute;visibility:hidden;z-index:-1;" />
	            </form>
  			</div><!-- panel #manage_photos -->
    	</div> <!-- panels -->
        <br style="clear:both">
    </div>
    <script>
	

        $(document).ready(function() {
        	
        	<?php 
echo insertFormAjax('listingForm');
?>
        	
			$('.photos').load("/ajax/photos.php?listing_id=<?php 
echo $listing_id;
?>
");
			
			$('.photos').on('click', '.clip', function(event) {
				var imgsrc = $(event.target).attr('src');
				$('body').append('<div id="fade"></div>'); //Add the fade layer to bottom of the body tag.
				$('#fade').css({'filter' : 'alpha(opacity=60)'}).fadeIn(); //Fade in the fade layer - .css({'filter' : 'alpha(opacity=80)'}) is used to fix the IE Bug on fading transparencies 
				$('#bigImage').attr('src',imgsrc);
				$("#imgViewer").slideDown(100);
				return false;
			});