Skip to content

Commit

Permalink
fixed JSON.parse
Browse files Browse the repository at this point in the history
  • Loading branch information
agusmakmun committed Jan 5, 2017
1 parent cfb2009 commit 4ff3f66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion draceditor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-

__VERSION__ = '1.1.1'
__VERSION__ = '1.1.2'
__AUTHOR__ = 'Agus Makmun (Summon Agus)'
__AUTHOR_EMAIL__ = '[email protected]'
5 changes: 3 additions & 2 deletions draceditor/static/js/draceditor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Name : DracEditor v1.1.1
* Name : DracEditor v1.1.2
* Created by : Agus Makmun (Summon Agus)
* Release date : 5-Jan-2017
* Official : https://dracos-linux.org
Expand Down Expand Up @@ -132,7 +132,8 @@
}
}
// Set autocomplete for ace editor
if (draceditor.data('enable-configs').mention === 'true') {
var configs = JSON.parse(draceditor.data('enable-configs').replace(/'/g, '"'));
if (configs.mention === 'true') {
editor.completers = [emojiWordCompleter, mentionWordCompleter]
}else {
editor.completers = [emojiWordCompleter]
Expand Down

0 comments on commit 4ff3f66

Please sign in to comment.