Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Next bb10 templates bb10 #83

Merged
merged 3 commits into from about 2 years ago

2 participants

Daniel Mateescu Jeffrey Heifetz
Daniel Mateescu

Added the checkboxes and table columns for BB10.

added some commits March 06, 2012
build/bbPlugin.js
@@ -102,6 +103,17 @@ BBTag.Support.prototype.resetSupportAttributes = function() {
102 103
         this.supportTable += tableNo + "\n" + tableNo + "\n";;
103 104
     }
104 105
 	
  106
+	if(this.bb10x){
  107
+        this.supportStrings.push("BlackBerry 10");
  108
+        if(this.supportTag.length){
  109
+            this.supportTag += "|";
  110
+        }
  111
+        this.supportTag += "bb10";
1

should thix be bb10x for consistency?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Jeffrey Heifetz jeffheifetz merged commit 94d771c into from March 07, 2012
Jeffrey Heifetz jeffheifetz closed this March 07, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 3 unique commits by 1 author.

Mar 06, 2012
Introduced the templates for BB10 checkboxes e9f5696
Fixed a bug in the BB10 headers 0364895
Mar 07, 2012
Fixed a consistency issue in the BB10 templates 6ac303a
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 23 additions and 7 deletions. Show diff stats Hide diff stats

  1. 30  build/bbPlugin.js
30  build/bbPlugin.js
@@ -22,7 +22,7 @@
22 22
 
23 23
 BBTag = {
24 24
     tableHeader : function(firstColumnName){
25  
-        return "<thead><tr><th>"+firstColumnName+"</th><th>BB5.0</th><th>BB6.0</th><th>BB7.0</th><th>PB1.0</th><th>PB2.0</th><th>Ripple</th></tr></thead>";
  25
+        return "<thead><tr><th>"+firstColumnName+"</th><th>BB5.0</th><th>BB6.0</th><th>BB7.0</th><th>PB1.0</th><th>PB2.0</th><th>BB10</th><th>Ripple</th></tr></thead>";
26 26
     }
27 27
 };
28 28
 
@@ -39,6 +39,7 @@ BBTag.Support.prototype.init = function() {
39 39
     this.bb70 = false;
40 40
     this.pb10 = false;
41 41
 	this.pb20 = false;
  42
+	this.bb10x = false;
42 43
 	this.ripple = false;
43 44
     this.common = false;
44 45
     this.resetSupportAttributes();
@@ -102,6 +103,17 @@ BBTag.Support.prototype.resetSupportAttributes = function() {
102 103
         this.supportTable += tableNo + "\n" + tableNo + "\n";;
103 104
     }
104 105
 	
  106
+	if(this.bb10x){
  107
+        this.supportStrings.push("BlackBerry 10");
  108
+        if(this.supportTag.length){
  109
+            this.supportTag += "|";
  110
+        }
  111
+        this.supportTag += "bb10x";
  112
+        this.supportTable += tableYes;
  113
+    }else{
  114
+        this.supportTable += tableNo;
  115
+    }
  116
+	
105 117
 	if(this.ripple){
106 118
         this.supportStrings.push("Ripple Emulator");
107 119
         if(this.supportTag.length){
@@ -118,14 +130,15 @@ BBTag.Support.prototype.resetSupportAttributes = function() {
118 130
     }
119 131
 }
120 132
 
121  
-BBTag.Support.prototype.populateByBools = function(bb50, bb60, bb70, pb10, pb20, ripple) {
  133
+BBTag.Support.prototype.populateByBools = function(bb50, bb60, bb70, pb10, pb20, bb10x, ripple ) {
122 134
     this.bb50 |= bb50;
123 135
     this.bb60 |= bb60;
124 136
     this.bb70 |= bb70;
125 137
     this.pb10 |= pb10;
126 138
 	this.pb20 |= pb20;
  139
+	this.bb10x |= bb10x;
127 140
 	this.ripple |= ripple;
128  
-    this.common |= bb50 && bb60 && bb70 && pb10 && pb20;
  141
+    this.common |= bb50 && bb60 && bb70 && pb10 && pb20 && bb10x;
129 142
     this.resetSupportAttributes();
130 143
 };
131 144
 
@@ -144,12 +157,13 @@ BBTag.Support.prototype.populateBySymbol = function(symbol) {
144 157
             var PB10 = symbol.comment.getTag("PB10").length;
145 158
 			var PB20 = symbol.comment.getTag("PB20").length;
146 159
             var PB10P = symbol.comment.getTag("PB10+").length;
  160
+			var BB10X = symbol.comment.getTag("BB10X").length;
147 161
 			var RIPPLE = symbol.comment.getTag("RIPPLE").length;
148 162
 
149 163
             symbol.support = new BBTag.Support();
150 164
             symbol.support.populateByBools((BB50 || BB50P), 
151 165
 		(BB50P || BB60P || BB60), (BB50P || BB60P || BB60 || BB70P || BB70), 
152  
-		(PB10 || PB10P), (PB20 || PB10P), RIPPLE);
  166
+		(PB10 || PB10P), (PB20 || PB10P), BB10X, RIPPLE );
153 167
             this.populateBySupport(symbol.support);
154 168
         }
155 169
     }
@@ -167,10 +181,11 @@ BBTag.Support.prototype.populateByString = function(string) {
167 181
         var PB10 = string.equals("PB10");
168 182
         var PB10P = string.equals("PB10+");
169 183
 		var PB20 = string.equals("PB20");
  184
+		var BB10X = string.equals("BB10X");
170 185
 		var RIPPLE = string.equals("RIPPLE");
171  
-
  186
+		
172 187
         this.populateByBools((BB50 || BB50P), (BB50P || BB60P || BB60), 
173  
-		(BB50P || BB60P || BB60 || BB70P || BB70), (PB10 || PB10P),(PB20 || PB10P), RIPPLE);
  188
+		(BB50P || BB60P || BB60 || BB70P || BB70), (PB10 || PB10P),(PB20 || PB10P), BB10X, RIPPLE );
174 189
     }
175 190
 };
176 191
 
@@ -180,6 +195,7 @@ BBTag.Support.prototype.populateBySupport = function(support) {
180 195
     this.bb70 |= support.bb70;
181 196
     this.pb10 |= support.pb10;
182 197
 	this.pb20 |= support.pb20;
  198
+	this.bb10x |= support.bb10x;
183 199
 	this.ripple |= support.ripple;
184 200
     this.common |= support.common;
185 201
     this.resetSupportAttributes();
@@ -194,7 +210,7 @@ BBTag.Support.prototype.populateBySymbolArray = function(symbolArray) {
194 210
 
195 211
 BBTag.PlaybookSupport = function(){
196 212
     var pbSupport = new BBTag.Support();
197  
-    pbSupport.populateByBools(false, false, false, true, false);
  213
+    pbSupport.populateByBools(false, false, false, true, true, false, false);
198 214
     return pbSupport;
199 215
 }
200 216
 
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.