From 9599ed7d267585b3dedf53fc6c53d35b11cfa5a6 Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Sun, 18 May 2014 10:18:56 +0530 Subject: [PATCH] Fix the jQuery migration warnings Remove the spaces in the beginning of html template strings. $( html ) require html to start with '<' See https://bugzilla.wikimedia.org/show_bug.cgi?id=65400 Change-Id: I93eaf41390ab72fcae1b8d4015585bc4f82e6f8a --- src/jquery.uls.core.js | 5 ++--- src/jquery.uls.lcd.js | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/jquery.uls.core.js b/src/jquery.uls.core.js index f20f7b6..b688155 100644 --- a/src/jquery.uls.core.js +++ b/src/jquery.uls.core.js @@ -25,8 +25,7 @@ // Region numbers in id attributes also appear in the langdb. /*jshint multistr:true */ - template = '\ -
\ + template = '
\
\ \
\ @@ -76,7 +75,7 @@
\
\
\ -
'; + '; /*jshint multistr:false */ /** diff --git a/src/jquery.uls.lcd.js b/src/jquery.uls.lcd.js index 3c9b176..7d207bd 100644 --- a/src/jquery.uls.lcd.js +++ b/src/jquery.uls.lcd.js @@ -25,8 +25,7 @@ var noResultsTemplate, LanguageCategoryDisplay; /*jshint multistr:true */ - noResultsTemplate = '\ -
\ + noResultsTemplate = '
\

\ No results found\

\