aboutsummaryrefslogtreecommitdiff
path: root/javascript/app/controllers/package.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/app/controllers/package.js')
-rw-r--r--javascript/app/controllers/package.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/javascript/app/controllers/package.js b/javascript/app/controllers/package.js
new file mode 100644
index 0000000..45a8bab
--- /dev/null
+++ b/javascript/app/controllers/package.js
@@ -0,0 +1,24 @@
+import Ember from 'ember';
+import {goToDefinition} from '../utils/go-to-definition';
+export default Ember.Controller.extend({
+ store : Ember.inject.service('store'),
+ currentFile : null,
+ loadItemsFunction : null,
+ query : null,
+ actions : {
+ searchIdentifier (query) {
+ if(query) {
+ this.set('currentFile',null);
+ document.title = this.get('model.id');
+ this.transitionToRoute('package.search',query);
+ }
+ },
+ showIdentifier (identifierInfo) {
+ goToDefinition(this.get('store'),
+ identifierInfo.locationInfo,
+ 1,//left mouse button
+ null);
+ return false;
+ }
+ }
+});