equal
deleted
inserted
replaced
69 }); |
69 }); |
70 } |
70 } |
71 this.set(key, newValue); |
71 this.set(key, newValue); |
72 }, |
72 }, |
73 |
73 |
|
74 /*deleteTag: function(query, item) { |
|
75 var newParams = null; |
|
76 if (query === 'date'){ |
|
77 newParams = []; |
|
78 Ember.$.each(this.get('date'), function(index, elt){ |
|
79 if (elt !== item){ |
|
80 newParams.push(elt); |
|
81 } |
|
82 }); |
|
83 } |
|
84 this.set(query, newParams); |
|
85 }*/ |
|
86 |
74 changeDocument: function(docDirection){ |
87 changeDocument: function(docDirection){ |
75 var direction = (docDirection === "next") ? 1 : -1; |
88 var direction = (docDirection === "next") ? 1 : -1; |
76 var currentObject = this.get("filteredDocuments").findBy('id', this.get("currentItem").get('id')); |
89 var currentObject = this.get("filteredDocuments").findBy('id', this.get("currentItem").get('id')); |
77 if ( currentObject !== 'undefined'){ |
90 if ( currentObject !== 'undefined'){ |
78 var index = this.get("filteredDocuments").indexOf(currentObject); |
91 var index = this.get("filteredDocuments").indexOf(currentObject); |