Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
romannurik committed Nov 10, 2015
2 parents 030ba9f + 9ba3ee4 commit 041a4f5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/html/icons-generic.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,10 @@ <h3>
if ((!field || field.id_ == 'source')
&& values['source'] && values['source'].name) {
var name = values['source'].name.split('.')[0];
name = 'ic_' + studio.util.sanitizeResourceName(name);
if (name.substring(0, 3).localeCompare('ic_') != 0)
name = 'ic_' + studio.util.sanitizeResourceName(name);
else
name = studio.util.sanitizeResourceName(name);
if (name != nameField.getValue()) {
nameField.setValue(name);
}
Expand Down Expand Up @@ -211,4 +214,4 @@ <h3>
studio.hash.bindFormToDocumentHash(form);
</script>
</body>
</html>
</html>

0 comments on commit 041a4f5

Please sign in to comment.