diff --git a/site/client/app/app.js b/site/client/app/app.js
index c69395b..b8618c9 100644
--- a/site/client/app/app.js
+++ b/site/client/app/app.js
@@ -16,7 +16,6 @@ var app = new Vue({
components: {
lobby: require('./components/lobby'),
- navigation: require('./components/navigation'),
chat: require('./components/chat')
}
diff --git a/site/client/app/components/lobby.js b/site/client/app/components/lobby.js
index 49ea8d7..3a7edea 100644
--- a/site/client/app/components/lobby.js
+++ b/site/client/app/components/lobby.js
@@ -1,5 +1,16 @@
module.exports = {
- template: require('../views/lobby.html')
+ template: require('../views/lobby.html'),
+
+ data: function() {
+ return {
+ modal: false
+ }
+ },
+
+ components: {
+ searchmatch: require('./modals/searchMatch'),
+ navigation: require('./navigation')
+ }
};
\ No newline at end of file
diff --git a/site/client/app/components/modals/searchMatch.js b/site/client/app/components/modals/searchMatch.js
new file mode 100644
index 0000000..e2a7c0f
--- /dev/null
+++ b/site/client/app/components/modals/searchMatch.js
@@ -0,0 +1,7 @@
+module.exports = {
+
+ template: require('../../views/modals/searchMatch.html'),
+
+ inherit: true
+
+};
\ No newline at end of file
diff --git a/site/client/app/components/navigation.js b/site/client/app/components/navigation.js
index 70da0d3..ffcece6 100644
--- a/site/client/app/components/navigation.js
+++ b/site/client/app/components/navigation.js
@@ -4,9 +4,16 @@ module.exports = {
template: require('../views/navigation.html'),
+ inherit: true,
+
methods: {
changeView: function(view) {
router.changeRoute(view);
+ },
+
+ searchMatch: function() {
+ this.modal = true;
+ // trigger match functions
}
}
diff --git a/site/client/app/routes.js b/site/client/app/routes.js
index aaf7e98..6d6646e 100644
--- a/site/client/app/routes.js
+++ b/site/client/app/routes.js
@@ -13,9 +13,7 @@ var routes = {
};
var options = {
- html5history: true,
- run_handler_in_init: false,
- convert_hash_in_init: false
+ html5history: true
}
var Router = require('director').Router;
diff --git a/site/client/app/views/lobby.html b/site/client/app/views/lobby.html
index cab0cae..d1047df 100644
--- a/site/client/app/views/lobby.html
+++ b/site/client/app/views/lobby.html
@@ -5,7 +5,7 @@