Jelajahi Sumber

camelcase "HTML" in certain places

Adam Shaw 11 tahun lalu
induk
melakukan
a1b6794307
4 mengubah file dengan 9 tambahan dan 6 penghapusan
  1. 4 1
      lang/fr.js
  2. 1 1
      src/agenda/AgendaView.js
  3. 3 3
      src/lang.js
  4. 1 1
      src/util.js

+ 4 - 1
lang/fr.js

@@ -6,6 +6,9 @@ $.fullCalendar.lang("fr", {
 		day: "Jour",
 		list: "Mon planning"
 	},
-	allDayHTML: "Toute la journée",// allDayHTML is discouraged but used here as a hack to get the breaking correct
+
+	// allDayHTML is discouraged but used here as a hack to get the breaking correct
+	allDayHtml: "Toute la journée",
+
 	eventLimitText: "en plus"
 });

+ 1 - 1
src/agenda/AgendaView.js

@@ -194,7 +194,7 @@ $.extend(AgendaView.prototype, {
 		return '' +
 			'<td class="' + this.widgetHeaderClass + ' fc-axis" ' + this.axisStyleAttr() + '>' +
 				'<span>' + // needed for matchCellWidths
-					(this.opt('allDayHTML') || htmlEscape(this.opt('allDayText'))) +
+					(this.opt('allDayHtml') || htmlEscape(this.opt('allDayText'))) +
 				'</span>' +
 			'</td>';
 	},

+ 3 - 3
src/lang.js

@@ -25,9 +25,9 @@ fc.datepickerLang = function(langCode, datepickerLangCode, options) {
 		},
 		defaultButtonText: {
 			// the translations sometimes wrongly contain HTML entities
-			prev: stripHTMLEntities(options.prevText),
-			next: stripHTMLEntities(options.nextText),
-			today: stripHTMLEntities(options.currentText)
+			prev: stripHtmlEntities(options.prevText),
+			next: stripHtmlEntities(options.nextText),
+			today: stripHtmlEntities(options.currentText)
 		}
 	});
 

+ 1 - 1
src/util.js

@@ -304,7 +304,7 @@ function htmlEscape(s) {
 }
 
 
-function stripHTMLEntities(text) {
+function stripHtmlEntities(text) {
 	return text.replace(/&.*?;/g, '');
 }