mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 03:29:03 -05:00 
			
		
		
		
	Working on time tracker
This commit is contained in:
		
							parent
							
								
									0a396c2d3a
								
							
						
					
					
						commit
						018b9f6d4c
					
				@ -18,6 +18,16 @@
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							@media (max-width: 768px) {
 | 
				
			||||||
 | 
								#clock,
 | 
				
			||||||
 | 
								#startLabel {
 | 
				
			||||||
 | 
									display: none;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								.navbar-right button {
 | 
				
			||||||
 | 
									padding-left: 0px;
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		button .glyphicon {
 | 
							button .glyphicon {
 | 
				
			||||||
			vertical-align: text-top;
 | 
								vertical-align: text-top;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
@ -120,10 +130,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
                <!-- Navbar Buttons -->
 | 
					                <!-- Navbar Buttons -->
 | 
				
			||||||
                <ul class="nav navbar-right" style="margin-right:0px; padding-left:12px; float:right;">
 | 
					                <ul class="nav navbar-right" style="margin-right:0px; padding-left:12px; float:right;">
 | 
				
			||||||
                    <span data-bind="text: selectedTask().duration, visible: selectedTask" class="hidden-xs"
 | 
					                    <span id="clock" data-bind="text: selectedTask().duration, visible: selectedTask" class="hidden-xs"
 | 
				
			||||||
                        style="font-size:28px; color:white; padding-right:12px; vertical-align:middle; display:none;"></span>
 | 
					                        style="font-size:28px; color:white; padding-right:12px; vertical-align:middle; display:none;"></span>
 | 
				
			||||||
                    <button type='button' data-bind="click: onStartClick, css: startClass" class="btn btn-lg">
 | 
					                    <button type='button' data-bind="click: onStartClick, css: startClass" class="btn btn-lg">
 | 
				
			||||||
                        <span data-bind="text: startLabel"></span>
 | 
					                        <span id="startLabel" data-bind="text: startLabel"></span>
 | 
				
			||||||
                        <span data-bind="css: startIcon"></span>
 | 
					                        <span data-bind="css: startIcon"></span>
 | 
				
			||||||
                    </button>
 | 
					                    </button>
 | 
				
			||||||
                </ul>
 | 
					                </ul>
 | 
				
			||||||
@ -177,7 +187,7 @@
 | 
				
			|||||||
	                                    ->rows(4) !!}
 | 
						                                    ->rows(4) !!}
 | 
				
			||||||
							</span>
 | 
												</span>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							<center style="padding-top: 30px">
 | 
												<center id="buttons" style="padding-top: 30px">
 | 
				
			||||||
								<span data-bind="visible: showArchive">
 | 
													<span data-bind="visible: showArchive">
 | 
				
			||||||
									{!! DropdownButton::normal(trans('texts.archive'))
 | 
														{!! DropdownButton::normal(trans('texts.archive'))
 | 
				
			||||||
										->withAttributes([
 | 
															->withAttributes([
 | 
				
			||||||
@ -462,6 +472,16 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			sendKeepAlive();
 | 
								sendKeepAlive();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								$(window).on('resize', function() {
 | 
				
			||||||
 | 
								    if ($(window).width() > 350) {
 | 
				
			||||||
 | 
								        $('#buttons .btn').removeClass('btn-sm');
 | 
				
			||||||
 | 
										$('#buttons .btn').addClass('btn-lg');
 | 
				
			||||||
 | 
								    }else{
 | 
				
			||||||
 | 
								        $('#buttons .btn').removeClass('btn-lg');
 | 
				
			||||||
 | 
										$('#buttons .btn').addClass('btn-sm');
 | 
				
			||||||
 | 
								    }
 | 
				
			||||||
 | 
								})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			$(window).on('beforeunload', function () {
 | 
								$(window).on('beforeunload', function () {
 | 
				
			||||||
				if (navigator.userAgent == 'Time Tracker') {
 | 
									if (navigator.userAgent == 'Time Tracker') {
 | 
				
			||||||
					return undefined;
 | 
										return undefined;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user