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
_postGetHandler: function(method, url, data, callback, type) { | |
var self = this; | |
if ($.isFunction(data)) { | |
type = type || callback; | |
callback = data; | |
data = undefined; | |
} | |
self.ajax({ |
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
currencyFilter.$inject = ['$locale']; | |
function currencyFilter($locale) { | |
var formats = $locale.NUMBER_FORMATS; | |
return function(amount, currencySymbol){ | |
if (isUndefined(currencySymbol)) currencySymbol = formats.CURRENCY_SYM; | |
return formatNumber(amount, formats.PATTERNS[1], formats.GROUP_SEP, formats.DECIMAL_SEP, 2). | |
replace(/\u00A4/g, currencySymbol); | |
}; | |
} |
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
index 898b8a7..a2dd010 100644 (file) | |
--- a/www/public/js/lib/ui/ui-bootstrap.js | |
+++ b/www/public/js/lib/ui/ui-bootstrap.js | |
@@ -147,6 +147,8 @@ angular.module('ui.bootstrap.modal', []) | |
replace: true,\r | |
templateUrl: 'template/modal/backdrop.html',\r | |
link: function (scope, element, attrs) {\r | |
+ scope.windowClass = attrs.windowClass || '';\r | |
+\r | |
//trigger CSS transitions\r |
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
angular.module('ui.bootstrap.modal', []) | |
/** | |
* A helper, internal data structure that acts as a map but also allows getting / removing | |
* elements in the LIFO order | |
*/ | |
.factory('$$stackedMap', function () { | |
return { | |
createNew: function () { |
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
// jo | |
if (a == b) { | |
if (c == d) { | |
} | |
if (e == f) { | |
} |
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
/* | |
atrs: | |
size, lineWidth, bg, bc, val | |
*/ | |
app.directive('clDonut', function() { | |
return { | |
restrict: 'E', | |
template: '<canvas></canvas>', | |
replace: true, | |
link: function(scope, el, attrs) { |
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
{ | |
"3/7": {[ | |
"project_main", | |
] | |
}, | |
"4/7": { | |
"1/6": [ | |
"tracked_estimated", | |
"estimated_profit", | |
"revenue", |
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
<?php | |
/** | |
* Adjusted parser to render paragraphs which only contain a single image without the paragraph. | |
* | |
* So instead | |
* <p><img ...></p> | |
* | |
* it just renders | |
* <img ...> |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<script src="lib/angular2.js"></script> | |
</head> | |
<body> | |
<hello> | |
Loading... |
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
import {bootstrap} from 'angular2/angular2'; | |
import {ROUTER_BINDINGS} from 'angular2/router'; | |
import {HTTP_BINDINGS} from 'angular2/http'; | |
import {App} from './app/app'; | |
bootstrap(App, [ROUTER_BINDINGS, HTTP_BINDINGS]); |
OlderNewer