From 778ff9a5ecdd42a811be64f84d22e610a1969ebc Mon Sep 17 00:00:00 2001 From: repository Date: Mon, 22 May 2017 07:29:13 +0200 Subject: [PATCH] intento de commit dani --- client/client/src/index/index.html | 2 +- client/client/src/notes/index.html | 2 +- client/core/src/components.js | 1 + client/core/src/repeat/index.js | 21 +++++++++++++++++++ .../src/components/left-menu/actions.html | 2 +- 5 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 client/core/src/repeat/index.js diff --git a/client/client/src/index/index.html b/client/client/src/index/index.html index 2ead0c2b4..df95e637f 100644 --- a/client/client/src/index/index.html +++ b/client/client/src/index/index.html @@ -13,7 +13,7 @@ - + diff --git a/client/client/src/notes/index.html b/client/client/src/notes/index.html index a671a353e..9bbafeca1 100644 --- a/client/client/src/notes/index.html +++ b/client/client/src/notes/index.html @@ -1,7 +1,7 @@ Notas - +
{{n.created | date:'dd/MM/yyyy HH:mm'}}
{{n.employee.name}}
diff --git a/client/core/src/components.js b/client/core/src/components.js index 7a258fd3b..5c21585ba 100644 --- a/client/core/src/components.js +++ b/client/core/src/components.js @@ -12,6 +12,7 @@ import './confirm/index'; import './title/index'; import './subtitle/index'; import './spinner/index'; +import './repeat/index'; export {NAME as BUTTON, directive as ButtonDirective} from './button/button'; export {NAME as BUTTON_MDL, factory as buttonMdl} from './button/button.mdl'; diff --git a/client/core/src/repeat/index.js b/client/core/src/repeat/index.js new file mode 100644 index 000000000..66979daa2 --- /dev/null +++ b/client/core/src/repeat/index.js @@ -0,0 +1,21 @@ +import { module as _module } from '../module'; +import * as constant from '../lib/constants'; +import * as util from '../lib/util'; + +const _NAME = 'repeat'; +export const NAME = util.getName(_NAME); + +directive.$inject = ['$compile', '$timeout']; +function directive($compile, $timeout) { + return { + restrict: 'A', + priority: 9999, + link: function(scope, element, attrs) { + element.removeAttr(`${constant.PREFIX}-${_NAME}`); + element.attr('ng-repeat', attrs[NAME]); + $compile(element)(scope); + } + }; +} + +_module.directive(NAME, directive); diff --git a/client/salix/src/components/left-menu/actions.html b/client/salix/src/components/left-menu/actions.html index b794c7faa..328efb51e 100644 --- a/client/salix/src/components/left-menu/actions.html +++ b/client/salix/src/components/left-menu/actions.html @@ -1,5 +1,5 @@
    - +