-
Couldn't load subscription status.
- Fork 79
Fixes #2398 #2658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Fixes #2398 #2658
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9797a1a
Fixes #2398
ad34d04
Resolving conflict with another new patch file.
c73bd55
Merge branch 'dev' of http://github.com/biocore/qiita into dev
8aed862
Rename file
f6cfb15
67.py renamed to 66.py. minor edit to edit_study.html
043f5eb
Update study title only if UTF-8 characters were removed.
7b5f42d
Merge branch 'dev' of http://github.com/biocore/qiita into dev
6b099ca
UTF-8 stripper now processes all study-types.
ebd99b0
66.py now passes flake8 tests.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| {% extends sitebase.html %} | ||
| {% block head %} | ||
| <script type="text/javascript" src="{% raw qiita_config.portal_dir %}/static/vendor/js/jquery.validate.min.js"></script> | ||
| <script type = "text/javascript" | ||
| src = "{% raw qiita_config.portal_dir %}/static/vendor/js/jquery.validate.min.js"> | ||
| </script> | ||
| <style> | ||
| .custom-combobox { | ||
| position: relative; | ||
|
|
@@ -32,7 +34,9 @@ | |
| var title = $(this).val(); | ||
| // removing any duplicated whitespaces | ||
| title = title.replace(/ +(?= )/g, ''); | ||
| // removing wite spaces from the front of the text | ||
| //remove all utf-8 encoded characters that are not also printable ASCII characters. | ||
| title = title.replace(/[^\x20-\x7E]+/g, ""); | ||
| // removing white spaces from the front of the text | ||
| $(this).val(title.trimLeft()); | ||
| }); | ||
| $("#create_study").validate({ | ||
|
|
@@ -156,8 +160,11 @@ <h3> | |
| {% if form_item.label.text == 'Environmental Packages' %} | ||
| {% set kwargs['size'] = len(form_item.choices) %} | ||
| {% set additional_info = 'You can select multiple entries by control-clicking (mac: command-clicking)' %} | ||
| {% elif form_item.label.text == 'Principan Investigator'%} | ||
| {% elif form_item.label.text == 'Principal Investigator'%} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks! |
||
| {% set kwargs['class_'] = kwargs['class_'] + ' chzn-select' %} | ||
| {% elif form_item.label.text == 'Study Title'%} | ||
| {% set additional_info = 'Study titles may only contain ASCII characters' %} | ||
|
|
||
| {% end %} | ||
| <tr> | ||
| <td width="20%">{% raw form_item.label %} <br /> <small>{{additional_info}}</small></td> | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch needs to be moved to its own file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can do this in my PR as I'm fixing conflicts; however, in the past we have decided to have only one patch per release cycle ... thus; the idea of having in the same patch