Subversion Repositories SmartDukaan

Rev

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

Rev 27356 Rev 27357
Line 887... Line 887...
887
					
887
					
888
							</h4>
888
							</h4>
889
							
889
							
890
						   #end
890
						   #end
891
						   
891
						   
892
                           <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>
892
                           <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>
893
						   
893
						   
894
					</div>
894
					</div>
895
					#end
895
					#end
896
				#end
896
				#end
897
				#end
897
				#end
-
 
898
		 <div class="offer-margin-container">
898
	          <div  class="modal  text-center" id="offerDescription">
899
	          <div  class="modal  text-center" id="offerDescription">
899
					<div class="modal-dialog">
900
					<div class="modal-dialog">
900
				    <div class="modal-content" >
901
				    <div class="modal-content" >
901
				     <div class="modal-header">
-
 
902
					        <button type="button" class="close" id = "cancel-model" data-dismiss="modal">&times;</button>
-
 
903
					        <h4 class="modal-title">Terms & Conditions</h4>      
-
 
904
				      </div>
-
 
905
                    <div class="modal-body1">
-
 
906
                     <div class = "row">
-
 
907
                     <div class="col-lg-12">
-
 
908
               
-
 
909
	    </div>
-
 
910
	    </div>
-
 
911
	    <div class="row">
-
 
912
                     <div class="col-lg-12">
-
 
913
                      <ul id="descriptionMenu">
-
 
914
						</ul>
-
 
915
		</div>
-
 
916
	</div>
-
 
917
             </div>	
-
 
918
	              <div class="modal-footer">
-
 
919
					        <button type="button" data-dismiss="modal" class="btn btn-default cancel-description">Cancel</button>
-
 
920
					   
902
				    
921
				   </div>
-
 
922
				    </div>
-
 
923
				    </div>
903
				    </div>
924
				    </div>
904
				    </div>
-
 
905
				</div>
-
 
906
				</div>
-
 
907
				
925
				<div class="row col-lg-12 info-box white-bg">
908
				<div class="row col-lg-12 info-box white-bg">
926
					#parse("performance.vm")
909
					#parse("performance.vm")
927
				</div>
910
				</div>
928
				<div class="row col-lg-12 info-box white-bg">
911
				<div class="row col-lg-12 info-box white-bg">
929
					<div class="col-lg-4">
912
					<div class="col-lg-4">
Line 971... Line 954...
971
	$(".fk_more").live('click', function() {
954
	$(".fk_more").live('click', function() {
972
		doGetAjaxRequestHandler(context + "/more-sales", function(response) {
955
		doGetAjaxRequestHandler(context + "/more-sales", function(response) {
973
			console.log(response);
956
			console.log(response);
974
		});
957
		});
975
	});
958
	});
-
 
959
	
-
 
960
	
976
	$("#description-offer").live(
961
	$("#description-offer").live(
977
			"click",
962
			"click",
978
			function(e) {
963
			function(e) {
979
			var des = $(this).data('description');
964
			var offerid = $(this).data('offerId');
980
			var nameArr= []
-
 
981
			     console.log(nameArr);
965
			console.log(offerid);
982
			
-
 
983
	        nameArr = des.split(',');
966
			doGetAjaxRequestHandler(context + "/getOfferMargins?offerId="
984
	        console.log(nameArr);
-
 
985
	    	for (x of nameArr) {
967
					+ offerid, function(response) {
986
              $("#descriptionMenu").append('<li style="padding:5px;list-style:square;">'+x+'</li>');
968
				$('.offer-margin-container .modal-content').html(response);
987
            }
-
 
988
	    		
-
 
989
			});
969
			});
-
 
970
		
-
 
971
 
-
 
972
	});
990
			
973
			
991
			
974
			
992
			
975
			
993
			$(".cancel-description").live(
976
			$(".cancel-description").live(
994
			"click",
977
			"click",