Skip to content
Browse files

Add worflow validation to prevent user replacement assumptions

  • Loading branch information...
1 parent ba815bf commit 1ab9360e3cc730f00b2b058089086f05079575dd @tjoyal tjoyal committed Feb 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/assets/javascripts/searchify/searchify.js
View
2 app/assets/javascripts/searchify/searchify.js
@@ -19,7 +19,7 @@
});
$(this).change( function (event, ui) {
- if ( $(this).data('value') != $(this).prev().val() ) {
+ if ( $(this).prev().val() == '' || $(this).prev().val() != $(this).data('value') ) {
$(this).val('');
$(this).prev().val('');
}

0 comments on commit 1ab9360

Please sign in to comment.
Something went wrong with that request. Please try again.