allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [5/6] git commit: [#7213] ticket:564 Fixed labels widget for IE11
Date Thu, 27 Mar 2014 21:41:29 GMT
[#7213] ticket:564 Fixed labels widget for IE11


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/3d7a8b5c
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/3d7a8b5c
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/3d7a8b5c

Branch: refs/heads/master
Commit: 3d7a8b5c59b4d386002723c008279a456757f14f
Parents: 6d2d38c
Author: Ferens Dmitriy <ferensdima@gmail.com>
Authored: Wed Mar 12 17:06:47 2014 +0200
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu Mar 27 21:29:44 2014 +0000

----------------------------------------------------------------------
 .../lib/widgets/resources/js/jquery.tagsinput.js  | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/3d7a8b5c/Allura/allura/lib/widgets/resources/js/jquery.tagsinput.js
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/resources/js/jquery.tagsinput.js b/Allura/allura/lib/widgets/resources/js/jquery.tagsinput.js
index b1b96c6..c4aa37c 100644
--- a/Allura/allura/lib/widgets/resources/js/jquery.tagsinput.js
+++ b/Allura/allura/lib/widgets/resources/js/jquery.tagsinput.js
@@ -221,15 +221,19 @@ function jq( id ) {
 				tags_callbacks[id]['onChange'] = settings.onChange;
 			}
 	
-			var markup = '<div id="'+id+'_tagsinput" class="tagsinput"><div id="'+id+'_addTag">';
+			var markup = $('<div>').attr({id: id + '_tagsinput', 'class': 'tagsinput'})
+								   .append($('<div>', {id: id + '_addTag'}));
 			
 			if (settings.interactive) {
-				markup = markup + '<input id="'+id+'_tag" value="" data-default="'+settings.defaultText+'"
/>';
-			}
-			
-			markup = markup + '</div><div class="tags_clear"></div></div>';
-			
-			$(markup).insertAfter(this);
+				$(markup).children().append($('<input>', {
+					'id': id + '_tag',
+					'value': '',
+					'data-default': settings.defaultText
+				}));
+			};
+
+			markup.append($('<div>', {'class': 'tags_clear'}));			
+			markup.insertAfter(this);
 
 			$(data.holder).css('width',settings.width);
 			$(data.holder).css('min-height',settings.height);


Mime
View raw message