Subversion Repositories SmartDukaan

Rev

Rev 24595 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24595 Rev 24649
Line 912... Line 912...
912
							return false;
912
							return false;
913
						}
913
						}
914
	 }
914
	 }
915
 
915
 
916
		var investmentChart=$investmentChart;
916
		var investmentChart=$investmentChart;
-
 
917
		
-
 
918
		
-
 
919
		
-
 
920
 #if(!$isAdmin)
-
 
921
		 
-
 
922
		 
-
 
923
		 
-
 
924
		 var stopInterval;
-
 
925
 
-
 
926
 
-
 
927
$(document).ready(function(){
-
 
928
	
-
 
929
	 stopInterval = setInterval(showAttendanceModal, 10000);
-
 
930
	
-
 
931
});
-
 
932
 
-
 
933
 
-
 
934
function showAttendanceModal() {
-
 
935
	var today = new Date().getTime();
-
 
936
	if ($.cookie("punchIn") == undefined) {
-
 
937
		document.cookie = "punchIn=" + today;
-
 
938
	}
-
 
939
	if (today >= parseInt($.cookie("punchIn"))) {
-
 
940
		doGetAjaxRequestHandler(context + "/getPunchInOutForModel", function(
-
 
941
				response) {
-
 
942
		      if(response == 'true'){
-
 
943
		    	  $('#punchInOutModal').modal('hide');
-
 
944
		    	  clearInterval(stopInterval);
-
 
945
		    	  console.log("hide");
-
 
946
		      }else{
-
 
947
		    	  $("#punch-in-out-model").html(response);
-
 
948
					$('#punchInOutModal').modal('show');
-
 
949
					var time = today + 60 * 1000
-
 
950
					document.cookie = "punchIn=" + time; 
-
 
951
					console.log("show");
-
 
952
		      }
-
 
953
			
-
 
954
			 
-
 
955
 
-
 
956
		});	}
-
 
957
}
-
 
958
 #end
-
 
959
		
-
 
960
		
917
	 </script>
961
	 </script>
918
 
962
 
919
 
963
 
920
 
964
 
921
    <div id="punchInOutModal" class="modal fade" role="dialog">
965
    <div id="punchInOutModal" class="modal fade" role="dialog">