From 30c51844141d0acfa3a8cf5e465057f8f6b3b147 Mon Sep 17 00:00:00 2001 From: Max Hershey Date: Thu, 30 Mar 2017 11:07:09 -0400 Subject: [PATCH] Wrap text value in escaped quotes to allow for spaces in tags. --- tagging.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tagging.js b/tagging.js index b10f510..cb8aaf6 100644 --- a/tagging.js +++ b/tagging.js @@ -442,7 +442,7 @@ // The pressed key //pressed_key = e.which; - pressed_key = e.key; + pressed_key = e.key; //console.log( pressed_key ); // For in loop to look to Remove Keys @@ -614,7 +614,7 @@ text = $tag; // Retrieving the $_obj of the tag - $tag = self.$elem.find( "input[value=" + text + "]" ).parent(); + $tag = self.$elem.find( "input[value=\"" + text + "\"]" ).parent(); // If nothing is found, return an error if ( ! $tag.length ) {