sports_db 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,8 +35,7 @@ var Application = Class.extend({
35
35
  $.assert(q.version, '`version` param is required.');
36
36
 
37
37
  this.client[q.client] = true;
38
- // this.client.version_major = q.version.split('.')[0];
39
- // this.client.version_minor = q.version.split('.')[1];
38
+ this.client.version = parseFloat(q.version);
40
39
 
41
40
  $('html').addClass('client_'+q.client);
42
41
  },
@@ -149,6 +148,7 @@ var Application = Class.extend({
149
148
  $(document.body).trigger('Application:viewAppended', [this.currentView.params]);
150
149
 
151
150
  // Show the footer
151
+ // TODO do not show the footer if this is NFL3 v5 or above
152
152
  if (this.footer) {
153
153
  this.footer.show();
154
154
  }
@@ -43,6 +43,11 @@ window.BaseView = View.extend({
43
43
  getButtons: function() {
44
44
  return this.params.buttons || "Back:";
45
45
  },
46
+ // This provides support for the NFL v5 menu implementation.
47
+ // Possibly NFL could subclass the BaseView
48
+ getV5MenuButton: function() {
49
+ return this.params.v5MenuButton || "showMainMenu";
50
+ },
46
51
  getAction: function() {
47
52
  return this.params.action || "<None>";
48
53
  },
@@ -67,6 +72,7 @@ window.BaseView = View.extend({
67
72
 
68
73
  $.ajax({
69
74
  url: this.url,
75
+ dataType: 'html',
70
76
  success: $.proxy(function(response) {
71
77
  if (params.isAutoUpdating && params.view !== Application.currentView.params.view) {
72
78
  console.log('$$ BaseView.create(): Not appending autoupdate view. We are no longer on that view!');
@@ -59,7 +59,7 @@ Client.notify = function(obj) {
59
59
  alert(obj.heading + "\n" + obj.text);
60
60
  }
61
61
 
62
- // CFB2 only
62
+ // Footer nav for CFB2 & NFL3 only
63
63
  if (obj.action === "navigateTo") {
64
64
  if (obj.location === 'home') {
65
65
  document.location = 'zcanvas.html';
@@ -27,6 +27,9 @@ window.View = Class.extend({
27
27
  getButtons: function() {
28
28
  throw new Error("getButtons method not implemented in subclass");
29
29
  },
30
+ getV5MenuButton: function() {
31
+ throw new Error("getV5MenuButton method not implemented in subclass");
32
+ },
30
33
  // Send off any necessary notifications to the client. This avoids and issue on iOS where
31
34
  // two notifications send right after one another causes one of them to fail.
32
35
  getAction: function() {
@@ -1,3 +1,4 @@
1
+ // Yes, this is stupid.
1
2
  .displaying_article {
2
3
  .team_record,
3
4
  #team_h2,
@@ -1,6 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
+ <meta charset="utf-8">
4
5
  <title><%= CONFIG.app_path %> - <%= Rails.env %></title>
5
6
  <meta name="viewport" content="user-scalable=no, initial-scale=1">
6
7
  <%= stylesheet_link_tag "application" %>
@@ -1,3 +1,3 @@
1
1
  module SportsDb
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sports_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-20 00:00:00.000000000 Z
12
+ date: 2013-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails