Renamed type field to syntax

This commit is contained in:
Gregory Eremin
2013-07-11 02:16:26 +07:00
parent 999509d17f
commit 2107e76df7
4 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
class Selector
constructor: (selector) ->
@input = $("#{selector}-input")
@dropdown = $(selector)
@dropdown = $("#{selector}-selector")
@placeholder = @dropdown.children 'span'
@prefix = @placeholder.text()
@options = @dropdown.find 'ul.dropdown > li'
@@ -29,6 +29,6 @@ class Selector
@input.val value
$ ->
new Selector '#type'
new Selector '#syntax'
$(document).on 'click', (e) ->
$('.wrapper-dropdown').removeClass 'active'