Comment out code that bugged upload image in ad_banner
This commit is contained in:
		
							parent
							
								
									d1feb102d0
								
							
						
					
					
						commit
						ca0fc4c767
					
				| 
						 | 
				
			
			@ -1,28 +1,28 @@
 | 
			
		|||
var history_edited = false; 
 | 
			
		||||
 | 
			
		||||
$('#back_sidebar a, #back_main a.nav').live('click',  
 | 
			
		||||
  function () {  
 | 
			
		||||
    $.getScript(this.href);
 | 
			
		||||
		history.pushState(null, document.title, this.href);
 | 
			
		||||
		history_edited = true;
 | 
			
		||||
    return false;
 | 
			
		||||
  }  
 | 
			
		||||
);
 | 
			
		||||
// $('#back_sidebar a, #back_main a.nav').live('click',  
 | 
			
		||||
//   function () {  
 | 
			
		||||
//     $.getScript(this.href);
 | 
			
		||||
// 		history.pushState(null, document.title, this.href);
 | 
			
		||||
// 		history_edited = true;
 | 
			
		||||
//     return false;
 | 
			
		||||
//   }  
 | 
			
		||||
// );
 | 
			
		||||
 | 
			
		||||
$('#back_main a.reload').live('click',
 | 
			
		||||
  function () { 
 | 
			
		||||
    $.getScript(this.href);
 | 
			
		||||
		history.replaceState(null, document.title, this.href);
 | 
			
		||||
		history_edited = true;
 | 
			
		||||
    return false;
 | 
			
		||||
  }
 | 
			
		||||
);
 | 
			
		||||
// $('#back_main a.reload').live('click',
 | 
			
		||||
//   function () { 
 | 
			
		||||
//     $.getScript(this.href);
 | 
			
		||||
// 		history.replaceState(null, document.title, this.href);
 | 
			
		||||
// 		history_edited = true;
 | 
			
		||||
//     return false;
 | 
			
		||||
//   }
 | 
			
		||||
// );
 | 
			
		||||
 | 
			
		||||
$('.form').live('submit', function () { 
 | 
			
		||||
  $.post(this.action, $(this).serialize(), null, 'script');
 | 
			
		||||
	history_edited = true;
 | 
			
		||||
  return false;
 | 
			
		||||
});
 | 
			
		||||
// $('.form').live('submit', function () { 
 | 
			
		||||
//   $.post(this.action, $(this).serialize(), null, 'script');
 | 
			
		||||
// 	history_edited = true;
 | 
			
		||||
//   return false;
 | 
			
		||||
// });
 | 
			
		||||
 | 
			
		||||
$(document).on('click', '.js_history',
 | 
			
		||||
  function () { 
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
<li class="span3" id = 'asd'>
 | 
			
		||||
			<%= image_tag ad_image.file %> 
 | 
			
		||||
			<%= image_tag ad_image.file rescue nil %> 
 | 
			
		||||
			<p>
 | 
			
		||||
				<%= ad_image.display? ? '[Showing]' : '[NotShawing]' %>
 | 
			
		||||
				<%= "#{ad_image.post_date ||'NeedReset'  }~#{ad_image.unpost_date || 'NeedReset'}" %>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue