Permalink
Browse files

safari bug fix

  • Loading branch information...
1 parent 1647183 commit 5e4ba4667723375efd99dda089d567d404be0716 @gregdingle committed Feb 25, 2009
Showing with 5 additions and 22 deletions.
  1. +2 −0 genetify/controls.js
  2. +0 −1 genetify/genetify.js
  3. +3 −21 schema.sql
View
@@ -132,6 +132,8 @@ genetify.controls = {
reVary: function(geneType){
genetify.genome = {};
+ var URLData = window.location.hash.slice(1);
+ genetify.utils.update(genetify.genomeOverride, genetify.utils.fragmentToGenome(URLData));
genetify.vary(geneType);
// console.log(genetify.genome, genetifyTime.time.vary + 'ms');
//TODO: this does nothing until server updates vary counts
View
@@ -91,7 +91,6 @@ var genetify = {
}
// TODO: make this optional as speed optimization
- genetify._checkCSS(['.v', '.genetify_enabled', '.genetify_disabled']);
genetify._addListener(window, 'onload', function(){
genetify._checkCSS(['.v', '.genetify_enabled', '.genetify_disabled']);
});
View
@@ -3,7 +3,8 @@
-- for MySQL
SET storage_engine=INNODB;
-drop table if exists result;
+drop table if exists stats_by_genome;
+drop table if exists stats_by_variant;
drop table if exists goal;
drop table if exists pageview;
drop table if exists genome_variant_link;
@@ -15,6 +16,7 @@ drop table if exists error;
drop table if exists visitor;
drop table if exists page;
drop table if exists domain;
+
--
-- Table structure for table domain
--
@@ -158,24 +160,6 @@ CREATE TABLE variant (
--
--- Table structure for table result
---
-CREATE TABLE result (
- variant_id int NOT NULL,
- domain_name varchar(255) NOT NULL,
- page_name varchar(255) NOT NULL,
- gene_name varchar(255) NOT NULL,
- variant_name varchar(255) NOT NULL,
- variant_count bigint,
- variant_sum double precision,
- variant_avg double precision,
- variant_stddev double precision,
- variant_share double precision,
- variant_weight double precision,
- UNIQUE (variant_id)
-);
-
---
-- Table structure for table stats_by_variant
--
CREATE TABLE stats_by_variant (
@@ -272,7 +256,5 @@ ALTER TABLE pageview ADD CONSTRAINT pageview_ibfk_4 FOREIGN KEY (genome_id) REFE
ALTER TABLE goal ADD CONSTRAINT goal_ibfk_1 FOREIGN KEY (pageview_xid) REFERENCES pageview (pageview_xid) ON DELETE CASCADE ON UPDATE CASCADE;
-ALTER TABLE result ADD CONSTRAINT result_ibfk_1 FOREIGN KEY (variant_id) REFERENCES variant (variant_id) ON DELETE CASCADE ON UPDATE CASCADE;
-
ALTER TABLE stats_by_variant ADD CONSTRAINT stats_by_variant_ibfk_1 FOREIGN KEY (variant_id) REFERENCES variant (variant_id) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE stats_by_genome ADD CONSTRAINT stats_by_genome_ibfk_1 FOREIGN KEY (genome_id) REFERENCES genome (genome_id) ON DELETE CASCADE ON UPDATE CASCADE;

0 comments on commit 5e4ba46

Please sign in to comment.