Skip to content
This repository has been archived by the owner on Oct 20, 2018. It is now read-only.

Commit

Permalink
minor refactoring, page title
Browse files Browse the repository at this point in the history
  • Loading branch information
therealklanni committed Aug 1, 2012
1 parent ae2b663 commit 4548af4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 16 deletions.
2 changes: 1 addition & 1 deletion debug.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Enyo Bootplate App</title>
<title>Kanbanana</title>
<link rel="shortcut icon" href="assets/favicon.ico">
<!-- -->
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Enyo Bootplate App</title>
<title>Kanbanana</title>
<link rel="shortcut icon" href="assets/favicon.ico">
<!-- -->
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
Expand Down
28 changes: 17 additions & 11 deletions source/Board.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,23 @@ enyo.kind({
projectName: null,
},

constructor: function() {
this.instanceArray = []
this.inherited(arguments)
this.components = [
{ kind: 'onyx.Toolbar', components: [
{ tag: 'h5', name: 'projectName' }
]}
]

console.debug(this)
},
components: [
{ kind: 'onyx.Toolbar', components: [
{ tag: 'h5', name: 'projectName' }
]}
],

//constructor: function() {
// this.instanceArray = []
// this.inherited(arguments)
// this.components = [
// { kind: 'onyx.Toolbar', components: [
// { tag: 'h5', name: 'projectName' }
// ]}
// ]
//
// console.debug(this)
//},

create: function() {
this.inherited(arguments)
Expand Down
9 changes: 6 additions & 3 deletions source/Project.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@ enyo.kind({
},

projectTap: function(inSender, inEvent) {
console.debug('tap',this.projects[inEvent.index].name)
var panels = enyo.$.kanbanana_panels
console.debug('tap',this.projects[inEvent.index].name, panels.index)

new Board({
name: 'board_'+ this.projects[inEvent.index].name.split(' ').join('_').toLowerCase(),
projectName: this.projects[inEvent.index].name,
container: enyo.$.kanbanana_panels
container: panels
})

enyo.$.kanbanana_panels.render()
panels.render()
},

getProjects: function(inPlace, inEvent) {
Expand Down

0 comments on commit 4548af4

Please sign in to comment.