Permalink
Browse files

Removing all other encodeURIComponent calls (#6)

  • Loading branch information...
1 parent 1bb3a37 commit 11c6ac70761144dad1e328155a9433f6dc1dc979 @TrevorBurnham TrevorBurnham committed May 10, 2012
Showing with 16 additions and 16 deletions.
  1. +2 −2 demo/editable.html
  2. +4 −4 jquery.preview.full.js
  3. +1 −1 jquery.preview.full.min.js
  4. +4 −4 jquery.preview.js
  5. +1 −1 jquery.preview.min.js
  6. +4 −4 src/selector.js
View
@@ -106,10 +106,10 @@
//Edit Title and Description handlers.
this.elem.find('.title').bind('blur', function(e){
- $(e.target).parents('form').find('#id_title').val(encodeURIComponent($(e.target).val()));
+ $(e.target).parents('form').find('#id_title').val($(e.target).val());
});
this.elem.find('.description').bind('blur', function(e){
- $(e.target).parents('form').find('#id_description').val(encodeURIComponent($(e.target).val()));
+ $(e.target).parents('form').find('#id_description').val($(e.target).val());
});
}
}
View
@@ -1608,7 +1608,7 @@ function Selector(form, selector) {
// If there are images, set the information in the form.
if (obj.images.length > 0) {
- form.find('#id_thumbnail_url').val(encodeURIComponent(obj.images[0].url));
+ form.find('#id_thumbnail_url').val(obj.images[0].url);
} else {
this.elem.find('.thumbnail').hide();
}
@@ -1682,7 +1682,7 @@ function Selector(form, selector) {
return false;
}
- var thumb = encodeURIComponent(images.find('img').eq((left / -width)).attr('src'));
+ var thumb = images.find('img').eq((left / -width)).attr('src');
// Puts the current thumbnail into the thumbnail_url input
form.find('#id_thumbnail_url').val(thumb);
@@ -1719,7 +1719,7 @@ function Selector(form, selector) {
elem.one('blur', function (e) {
var elem = $(e.target);
// Sets the New Title in the hidden inputs
- form.find('#id_title').val(encodeURIComponent(elem.val()));
+ form.find('#id_title').val(elem.val());
var a = $('<a/>').attr({
'class': 'title',
@@ -1753,7 +1753,7 @@ function Selector(form, selector) {
elem.one('blur', function (e) {
var elem = $(e.target);
// Sets the New Title in the hidden inputs
- form.find('#id_description').val(encodeURIComponent(elem.val()));
+ form.find('#id_description').val(elem.val());
var a = $('<a/>').attr({
'class': 'description',

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -351,7 +351,7 @@ function Selector(form, selector) {
// If there are images, set the information in the form.
if (obj.images.length > 0) {
- form.find('#id_thumbnail_url').val(encodeURIComponent(obj.images[0].url));
+ form.find('#id_thumbnail_url').val(obj.images[0].url);
} else {
this.elem.find('.thumbnail').hide();
}
@@ -425,7 +425,7 @@ function Selector(form, selector) {
return false;
}
- var thumb = encodeURIComponent(images.find('img').eq((left / -width)).attr('src'));
+ var thumb = images.find('img').eq((left / -width)).attr('src');
// Puts the current thumbnail into the thumbnail_url input
form.find('#id_thumbnail_url').val(thumb);
@@ -462,7 +462,7 @@ function Selector(form, selector) {
elem.one('blur', function (e) {
var elem = $(e.target);
// Sets the New Title in the hidden inputs
- form.find('#id_title').val(encodeURIComponent(elem.val()));
+ form.find('#id_title').val(elem.val());
var a = $('<a/>').attr({
'class': 'title',
@@ -496,7 +496,7 @@ function Selector(form, selector) {
elem.one('blur', function (e) {
var elem = $(e.target);
// Sets the New Title in the hidden inputs
- form.find('#id_description').val(encodeURIComponent(elem.val()));
+ form.find('#id_description').val(elem.val());
var a = $('<a/>').attr({
'class': 'description',
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -156,7 +156,7 @@ function Selector(form, selector) {
// If there are images, set the information in the form.
if (obj.images.length > 0) {
- form.find('#id_thumbnail_url').val(encodeURIComponent(obj.images[0].url));
+ form.find('#id_thumbnail_url').val(obj.images[0].url);
} else {
this.elem.find('.thumbnail').hide();
}
@@ -230,7 +230,7 @@ function Selector(form, selector) {
return false;
}
- var thumb = encodeURIComponent(images.find('img').eq((left / -width)).attr('src'));
+ var thumb = images.find('img').eq((left / -width)).attr('src');
// Puts the current thumbnail into the thumbnail_url input
form.find('#id_thumbnail_url').val(thumb);
@@ -267,7 +267,7 @@ function Selector(form, selector) {
elem.one('blur', function (e) {
var elem = $(e.target);
// Sets the New Title in the hidden inputs
- form.find('#id_title').val(encodeURIComponent(elem.val()));
+ form.find('#id_title').val(elem.val());
var a = $('<a/>').attr({
'class': 'title',
@@ -301,7 +301,7 @@ function Selector(form, selector) {
elem.one('blur', function (e) {
var elem = $(e.target);
// Sets the New Title in the hidden inputs
- form.find('#id_description').val(encodeURIComponent(elem.val()));
+ form.find('#id_description').val(elem.val());
var a = $('<a/>').attr({
'class': 'description',

0 comments on commit 11c6ac7

Please sign in to comment.