Skip to content

Commit

Permalink
Fixed quick start bug when loaded from file://
Browse files Browse the repository at this point in the history
  • Loading branch information
gregdingle committed Jun 1, 2009
1 parent 11d3866 commit 62d5f32
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions genetify/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// todo: change to POST only, check referrer
function main()
{
if (empty($_REQUEST['domain']) || empty($_REQUEST['page'])) {
errback('Domain and page required.');
if (empty($_REQUEST['page'])) {
errback('Page required.');
}

if ($_REQUEST['delete'] == true) {
Expand Down
16 changes: 6 additions & 10 deletions genetify/demo/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,16 +173,12 @@
// console.log(genetify.cookie.read('genetify_genome_page'));
// console.log(genetify.cookie.read('genetify_genome'));

// setTimeout(function(){
// test = genetify.test;
// // test.variants('mygene', ['A', 'B', 'C']);
// // test.variants('.mygene', ['A', 'B']);
// // test.variants('.myothergene', ['A', 'B', 'C']);
// // test.variants('main', ['AdditiveCSSRules', 'Elements']);
//
// test.results('mygene', ['A', 'B', 'C']);
// }, 1000);
//
test = genetify.test;
test.results('mygene', ['A', 'B', 'C']);
// test.variants('mygene', ['A', 'B', 'C']);
// test.variants('.mygene', ['A', 'B']);
// test.variants('.myothergene', ['A', 'B', 'C']);
// test.variants('main', ['AdditiveCSSRules', 'Elements']);
</script>

<!-- <a href="#" onclick="genetify.record.goal('adfs',-1); return false;">test error</a>
Expand Down
4 changes: 2 additions & 2 deletions genetify/reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

function main()
{
if (empty($_REQUEST['domain']) || empty($_REQUEST['page'])) {
die('Domain and page required.');
if (empty($_REQUEST['page'])) {
die('Page required.');
}

//TODO: mysql-php field type mapping... keep ints as ints!
Expand Down
5 changes: 5 additions & 0 deletions genetify/repro.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
.genetify_disabled { display: none !important; }
.genetify_enabled { display: block !important; }
</style>
<script type="text/javascript">
GENETIFY_CONFIG = {
USE_COOKIE: false //remove this in production
};
</script>
<script type="text/javascript" src="http://app.genetify.com/genetify.js"></script>

<!-- genetified CSS -->
Expand Down

0 comments on commit 62d5f32

Please sign in to comment.