Commit c83b3046df7dfa5e7d22b2d6ada3b79e9d4d6514
- Diff rendering mode:
- inline
- side by side
mouchak/static/js/models.js
(1 / 1)
  | |||
83 | 83 | } | |
84 | 84 | } | |
85 | 85 | else if(this.get('src').match(/\.css/)) { | |
86 | console.log('css plugin found.. <'+ this.get('src')+'> loading it..'); | ||
86 | //console.log('css plugin found.. <'+ this.get('src')+'> loading it..'); | ||
87 | 87 | var link = document.createElement('link'); | |
88 | 88 | link.rel = 'stylesheet'; | |
89 | 89 | link.href = this.get('src'); |
mouchak/static/js/mouchak.js
(17 / 1)
  | |||
105 | 105 | showSurvey: function(x) { | |
106 | 106 | this.showPage('survey'); | |
107 | 107 | var station = x; | |
108 | CRP.vizInit(x); | ||
108 | //bad hack to circumvent plugin loading problems | ||
109 | //not even foolproof. | ||
110 | //TODO: should implement plugin loaders | ||
111 | try { | ||
112 | if(CRP.vizInit) { | ||
113 | CRP.vizInit(x); | ||
114 | } | ||
115 | else { | ||
116 | setTimeout(function() { | ||
117 | CRP.vizInit(x); | ||
118 | }, 3000); | ||
119 | } | ||
120 | } catch(e) { | ||
121 | setTimeout(function() { | ||
122 | CRP.vizInit(x); | ||
123 | }, 3000); | ||
124 | } | ||
109 | 125 | }, | |
110 | 126 | showPage: function(page, subpage, evenmore) { | |
111 | 127 | //console.log(page); |