vendor/assets/javascripts/quick_script/classes.js.coffee in quick_script-0.10.2 vs vendor/assets/javascripts/quick_script/classes.js.coffee in quick_script-0.11.0
- old
+ new
@@ -144,10 +144,10 @@
Overlay.closeDialog = ->
@remove('dialog')
Overlay.add = (vm, tmp, opts) ->
opts ||= {}
css_opts = opts.style || {}
- cls = opts.class || ''
+ cls = opts.className || ''
id = vm.name
template = tmp
#options['z-index'] = Overlay.instance.zindex + 10
$('body').append("<div id='overlay-" + id + "' class='modal hide fade'><button class='close' data-bind='click : hideOverlay'>x</button><div class='content' data-bind=\"template: '" + template + "'\"></div></div>")
$('#overlay-' + id).css(css_opts)