aboutsummaryrefslogtreecommitdiff
path: root/javascript/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/app/controllers')
-rw-r--r--javascript/app/controllers/package.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/javascript/app/controllers/package.js b/javascript/app/controllers/package.js
index 278899f..a9f5559 100644
--- a/javascript/app/controllers/package.js
+++ b/javascript/app/controllers/package.js
@@ -9,18 +9,14 @@ export default Ember.Controller.extend({
query : null,
searchMode : "currentPackage",
createSearchUrlFunction : Ember.computed("searchMode",function() {
- const packageId = this.get('model.id');
- const query = this.get('query');
+ const packageId = this.get('model.id');
if(this.get('searchMode') === "currentPackage") {
return (query) => urls.identifierSearchUrl(packageId,query);
- } else {
+ } else {
return (query) => urls.globalIdentifiersUrl(query);
}
}),
actions : {
- searchModeChanged () {
-
- },
searchIdentifier (query) {
if(query) {
this.set('currentFile',null);