mirror of
https://codeberg.org/scip/digiproof.git
synced 2025-12-17 12:41:06 +01:00
initial commit
This commit is contained in:
27
js/controllers_index.js
Normal file
27
js/controllers_index.js
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
App.IndexController = Ember.Controller.extend({
|
||||
has_self: App.Self.find(),
|
||||
has_asset: App.Asset.find(),
|
||||
has_successor: App.Successor.find(),
|
||||
VERSION: VERSION
|
||||
});
|
||||
|
||||
|
||||
|
||||
App.NavView = Ember.View.extend({
|
||||
tagName: 'li',
|
||||
classNameBindings: 'active'.w(),
|
||||
|
||||
didInsertElement: function () {
|
||||
this._super();
|
||||
var _this = this;
|
||||
this.get('parentView').on('click', function () {
|
||||
_this.notifyPropertyChange('active');
|
||||
});
|
||||
},
|
||||
|
||||
active: function () {
|
||||
return this.get('childViews.firstObject.active');
|
||||
}.property()
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user