Skip to content

Commit

Permalink
Upps! the format function wasn't resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
gerard2perez committed Jul 28, 2015
1 parent f0250a3 commit f715ed0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions addon/components/crud-table.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*globals $, google*/
import Ember from 'ember';
import dateformat from '../utils/dateformat';
import DF from '../utils/dateformat';

var modalpromise;
var proccesDef = [];
Expand Down Expand Up @@ -117,7 +117,7 @@ var regenerateView = function(cmp) {
Field: field,
Value: data,
Choose: cmp.fields[field].OnChoose,
Display: dateformat.format(data, cmp.fields[field].Format),
Display: DF.format(data, cmp.fields[field].Format),
List: cmp.fields[field].List === true,
Suffix: cmp.fields[field].Suffix,
Prefix: cmp.fields[field].Prefix,
Expand Down
4 changes: 2 additions & 2 deletions addon/utils/dateformat.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ dateFormat.i18n = {
]
};

export default Ember.Object.extend({
export default {
format : function(theString, formatval) {
if (theString == null || formatval === undefined) {
return theString;
Expand All @@ -148,4 +148,4 @@ export default Ember.Object.extend({
}
return theString;
}
});
};

0 comments on commit f715ed0

Please sign in to comment.