Skip to content

Commit

Permalink
Forgot to add image
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerardo Perez Perez committed Apr 11, 2015
1 parent 29bf3f5 commit c7f0a56
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions addon/components/crud-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var regenerateView = function (cmp) {
Type: cmp.fields[field].Type || 'text',
listener: function () {
row.set(this.get('Field'), this.get('Value'));
if (cmp.fields[field].Display == null) {
if (cmp.fields[field].Display === null) {
row.set('Display', this.get('Value'));
}
}.observes('Value'),
Expand Down Expand Up @@ -247,12 +247,11 @@ export default Ember.Component.extend({
var that = this;

Object.keys(that.fields).forEach(function(fieldname){
if(that.fields[fieldname].Label == field){
if(that.fields[fieldname].Label === field){
field = fieldname;
}
});
var query = {};
var that = this;
query[field] = this.get('SearchTerm');
lastquery = query;
var deferred = Ember.RSVP.defer('crud-table#createRecord');
Expand Down
1 change: 1 addition & 0 deletions app/templates/ember-cli-crudtable/table-cell-image.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<img {{bind-attr src=record.Value}} style="height:auto;width:auto"/>
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-cli-crudtable",
"version": "0.3.27",
"version": "0.4.0-beta.1",
"description": "This addon allows you to easly create a CRUD Table, it will take you only 5s!.",
"directories": {
"doc": "doc",
Expand Down Expand Up @@ -44,4 +44,4 @@
"ember-addon": {
"configPath": "tests/dummy/config"
}
}
}

0 comments on commit c7f0a56

Please sign in to comment.