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.
- data/app/assets/javascripts/core/App.js +2 -2
- data/app/assets/javascripts/core/BaseView.js +6 -0
- data/app/assets/javascripts/core/Mock.js +1 -1
- data/app/assets/javascripts/core/View.js +3 -0
- data/app/assets/stylesheets/_articles.css.scss +1 -0
- data/app/views/layouts/application.html.erb +1 -0
- data/lib/sports_db/version.rb +1 -1
- metadata +2 -2
@@ -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
|
-
|
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!');
|
@@ -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() {
|
data/lib/sports_db/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2013-07-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|