This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Model: | |
public class OrganisationVM | |
{ | |
public int Id { get; set; } | |
[Required] | |
[MinLength(5, ErrorMessage = "Must be at least 5 characters long")] | |
public string Name { get; set; } | |
[Required] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shoppingCarts: ShoppingCart[] = []; | |
shoppingCart: ShoppingCart; | |
this.shoppingCarts.map((value, key) => { | |
if(value.id == this.shoppingCart.id){ | |
this.shoppingCarts[key] = this.shoppingCart; | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Converts the given date value to epoch time. | |
/// </summary> | |
public static long ToEpochTime(this DateTime dateTime) | |
{ | |
var date = dateTime.ToUniversalTime(); | |
var ticks = date.Ticks - new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc).Ticks; | |
var ts = ticks / TimeSpan.TicksPerSecond; | |
return ts; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.widget-text { | |
background-color: #999590; | |
color: white; | |
margin: 10px 0 0 70px; | |
padding: 1px 20px; | |
position: relative; | |
} | |
.widget-text:before, .widget-text:after { | |
content: ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I was able to fix the issues by deleting the files in ~Library/Accounts/ and ~/Library/Preferences/MobileMeAccounts.plist | |
then logging out and in again before opening the panels again. | |
Warning: This also removes every other account you have listed in the accounts folder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url: '/Account/Login', | |
type: 'POST', | |
contentType: 'application/json; charset=utf-8', | |
data: JSON.stringify(loginInfo), | |
dataType: 'json', | |
success: function (output) { | |
if (output.Status == 'fail') { | |
hideProgress(); | |
$('#btnLogin').hideProgress(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTML: | |
***** Always select last one ,when add a new one, this list will select new one automatically ***** | |
<div> | |
<label>Summary: </label> | |
<select (change)="filterForeCasts($event.value)"> | |
<option *ngFor="let summary of summaries" [value]="summary" [selected]="summary == summaries[summaries.length-1]"> | |
{{summary}} | |
</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
transform: translate(0, -50%); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. top arrow fix | |
:host ::ng-deep .arrow::before { | |
border-top-color: #C0054D; | |
border-bottom-color: white !important; | |
} | |
:host ::ng-deep .tooltip-inner { | |
background: #C0054D; | |
width: 200px; |
OlderNewer