Subversion Repositories SmartDukaan

Rev

Rev 27244 | Rev 27456 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27244 Rev 27455
Line 883... Line 883...
883
					
883
					
884
							</h4>
884
							</h4>
885
							
885
							
886
						   #end
886
						   #end
887
						   
887
						   
888
                           <p style="float:right;font-size:15px; margin:0px 0px 0px; " id="description-offer" data-description = "$offer.getDescription()" data-toggle="modal" data-target="#offerDescription"  data-backdrop="static" data-keyboard="false"><a href="#">All terms & conditions</a></p>
888
                              <p style="float:right;font-size:15px; margin:0px 0px 0px; " id="description-offer" data-offerid = "$offer.getId()" data-toggle="modal" data-target="#offerDescription"  data-backdrop="static" data-keyboard="false"><a href="#">All terms & conditions</a></p>
889
						   
889
						    
890
					</div>
890
					</div>
891
					#end
891
					#end
892
				#end
892
				#end
893
				#end
893
				#end
894
				    <div  class="modal  text-center" id="offerDescription">
894
				    <div  class="modal  text-center" id="offerDescription">
Line 960... Line 960...
960
	<script type="text/javascript">
960
	<script type="text/javascript">
961
	
961
	
962
	$("#description-offer").live(
962
	$("#description-offer").live(
963
			"click",
963
			"click",
964
			function(e) {
964
			function(e) {
965
			var des = $(this).data('description');
965
			var offerid = $(this).data('offerid');
966
			var nameArr= []
-
 
967
			     console.log(nameArr);
966
			console.log(offerid);
968
			
-
 
969
	        nameArr = des.split(',');
967
			doGetAjaxRequestHandler(context + "/getOfferMargins?offerId="
970
	        console.log(nameArr);
-
 
971
	    	for (x of nameArr) {
968
					+ offerid, function(response) {
972
              $("#descriptionMenu").append('<li style="padding:5px;list-style:square;">'+x+'</li>');
969
				$('.offer-margin-container .modal-content').html(response);
973
            }
-
 
974
	    		
-
 
975
			});
970
			});
-
 
971
		
-
 
972
 
-
 
973
	});
976
			
974
			
977
			
975
			
978
			
976
			
979
			$(".cancel-description").live(
977
			$(".cancel-description").live(
980
			"click",
978
			"click",