<!-- SIDEBAR LEFT -->
-webkit-transform: translateZ(0);
$('#building_views').on("click", "input[id$='is_cover']", function(){
$covers_set.not(this).removeAttr('checked');
});
.directive('ng-blur', function() {
return {
restrict: 'A',
link: function postLink(scope, element, attrs) {
element.bind('blur', function () {
scope.$apply(attrs.ngBlur);
});
}
};
});
<input type="text" ng-blur="handleInputBlur()"></input>
$scope.handleInputBlur = function(){
// do some action here
}
document.getElementById("myvideo").addEventListener('loadedmetadata', function() {
console.log(document.getElementById("myvideo").duration);
});
Why ng-model as you dont need two way data-binding? if you set value="{{ myModel }}" it works nicely
if (переменная < 10) {
переменная = '0' + переменная
}
$('#places_filters').on('click', '#a_link', function(){
var link = $(this);
window.location.href = window.location.href.replace(/#!.*/g, '') + '#!' + link.attr('href');
$sort = link.attr('sort_id');
$.get('/ajax/places?sort='+$sort, function(data) {
$('#places_filters').html(data);
});
return false;
})