mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
code formatting
This commit is contained in:
@@ -18,41 +18,32 @@ module.directive('focus', [ '$timeout', function($timeout) {
|
|||||||
/**
|
/**
|
||||||
* Open a popup window pointing to the url in the href attribute
|
* Open a popup window pointing to the url in the href attribute
|
||||||
*/
|
*/
|
||||||
module
|
module.directive('popup', function() {
|
||||||
.directive(
|
var opts = 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800';
|
||||||
'popup',
|
return {
|
||||||
function() {
|
link : function(scope, elm, attrs) {
|
||||||
return {
|
elm.bind('click', function(event) {
|
||||||
link : function(scope, elm, attrs) {
|
window.open(this.href, '', opts);
|
||||||
elm
|
event.preventDefault();
|
||||||
.bind(
|
});
|
||||||
'click',
|
}
|
||||||
function(event) {
|
};
|
||||||
window
|
});
|
||||||
.open(this.href, '',
|
|
||||||
'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800');
|
|
||||||
event.preventDefault();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reusable favicon component
|
* Reusable favicon component
|
||||||
*/
|
*/
|
||||||
module
|
module.directive('favicon', function() {
|
||||||
.directive(
|
var tpl = '<img ng-src="{{url}}" class="favicon"></img>';
|
||||||
'favicon',
|
return {
|
||||||
function() {
|
restrict : 'E',
|
||||||
return {
|
scope : {
|
||||||
restrict : 'E',
|
url : '='
|
||||||
scope : {
|
},
|
||||||
url : '='
|
replace : true,
|
||||||
},
|
template : tpl
|
||||||
replace : true,
|
};
|
||||||
template : '<img ng-src="{{url}}" class="favicon"></img>'
|
});
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Support for the blur event
|
* Support for the blur event
|
||||||
|
|||||||
Reference in New Issue
Block a user