Subversion Repositories SmartDukaan

Rev

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

Rev 19106 Rev 19118
Line 34... Line 34...
34
</style>
34
</style>
35
 
35
 
36
<script>
36
<script>
37
onload=function(){
37
onload=function(){
38
	var e=document.getElementById("refreshed");
38
	var e=document.getElementById("refreshed");
39
	if(e.value=="no")e.value="yes";
39
	if(e.value=="no"){
-
 
40
		e.value="yes";
-
 
41
		$('#loadModal').modal('hide');
-
 
42
	}
-
 
43
	else{
-
 
44
		e.value="no";
40
	else{e.value="no";location.reload();}
45
		location.reload();}
41
	}
46
	}
42
	$(document).ready(function(){
47
	$(document).ready(function(){
-
 
48
		$('#loadModal').modal('show');
43
			$('.notifi').click(function(){
49
			$('.notifi a').click(function(){
-
 
50
				
-
 
51
				$('#loadModal').modal('show');
-
 
52
				});
-
 
53
// 			$('.notifi').click(function(){
44
				if($(this).hasClass('notifi')){
54
// 				if($(this).hasClass('notifi')){
45
					$(this).removeClass('unseen');
55
// 					$(this).removeClass('unseen');
46
				}
56
// 				}
-
 
57
 
-
 
58
// 				 $.ajax({
-
 
59
//                      method: "POST",
-
 
60
 //                    url:  "<?php //echo $base_url;?>users/sendseen",
-
 
61
//                  },'json')
-
 
62
//                  .done(function(msg){
-
 
63
 
-
 
64
// 					});
47
			});
65
// 			});
48
 
66
 
49
			$("#go_back").click(function(){
67
			$("#go_back").click(function(){
50
				window.history.back();
68
				window.history.back();
51
			});
69
			});
52
 
70
 
53
			if($('.cscrollselector > .card').length>0) {
71
			if($('.cscrollselector > .card').length>0) {
54
// 				debugger;
-
 
55
//                 if(typeof noscrolling == 'undefined') {
-
 
56
                    $('.cscrollselector').jscroll({
72
                    $('.cscrollselector').jscroll({
57
                        loadingHtml: '<center><img src="/img/ajax-loader.gif" alt="Loading" /></center>',
73
                        loadingHtml: '<center><img src="/img/ajax-loader.gif" alt="Loading" /></center>',
58
                        autoTriggerUntil: 3,
74
                        autoTriggerUntil: 3,
59
                        padding: 20
75
                        padding: 20
60
                    });
76
                    });
61
                }
77
                }
62
//             }
-
 
63
			
78
			
64
		});
79
		});
65
</script>
80
</script>
66
 
81
 
-
 
82
<div class="modal fade" id="loadModal">
-
 
83
  <div class="modal-dialog">
-
 
84
    <div class="modal-content">      
-
 
85
      <div class="modal-body">
-
 
86
        <div class="text-center" id='content-add'>
-
 
87
            <img src="/img/ajax-loader.gif" alt="Loading" />
-
 
88
        </div>        
-
 
89
      </div>      
-
 
90
    </div><!-- /.modal-content -->
-
 
91
  </div><!-- /.modal-dialog -->
-
 
92
</div>
-
 
93
 
67
<input type="hidden" id="refreshed" value="no">
94
<input type="hidden" id="refreshed" value="no">
68
<div id= "go_back" style="width:100%;z-index:5;top:0px;position:fixed;margin-top: 0px;">    
95
<div id= "go_back" style="width:100%;z-index:5;top:0px;position:fixed;margin-top: 0px;height:35px;">    
69
    	<span style="padding:3px" class="glyphicon glyphicon-arrow-left"></span> <b>Notifications</b>
96
    	<span style="padding:5px" class="glyphicon glyphicon-arrow-left"></span> <b>Notifications</b>
70
</div>
97
</div>
71
<div class = "container" style="margin-top: 30px;">
98
<div class = "container" style="margin-top: 35px;">
72
	
99
	
73
	<div class="row scroll cscrollselector" >
100
	<div class="row scroll cscrollselector" >
74
		<?php echo $this->element('getnotification');?>	
101
		<?php echo $this->element('getnotification');?>	
75
	</div>
102
	</div>
76
</div>
103
</div>