Added form css prefix support.
This commit is contained in:
parent
57a7e25cf1
commit
9bf5bc4e66
1 changed files with 6 additions and 5 deletions
|
@ -50,6 +50,7 @@ $(function() {
|
|||
defaults = {
|
||||
debug: false,
|
||||
noCSS: false,
|
||||
prefixCSS: 'zammad-form-',
|
||||
showTitle: false,
|
||||
messageTitle: 'Zammad Form',
|
||||
messageSubmit: 'Submit',
|
||||
|
@ -242,12 +243,12 @@ $(function() {
|
|||
_this.modalOpenTime = new Date()
|
||||
_this.log('debug', 'modalOpenTime:', _this.modalOpenTime)
|
||||
|
||||
var element = '<div class="zammad-form-modal">\
|
||||
<div class="zammad-form-modal-backdrop js-close"></div>\
|
||||
<div class="zammad-form-modal-body">\
|
||||
<form class="zammad-form"></form>\
|
||||
var element = "<div class=\"" + _this.options.prefixCSS + "modal\">\
|
||||
<div class=\"" + _this.options.prefixCSS + "modal-backdrop js-close\"></div>\
|
||||
<div class=\"" + _this.options.prefixCSS + "modal-body\">\
|
||||
<form class=\"zammad-form\"></form>\
|
||||
</div>\
|
||||
</div>'
|
||||
</div>"
|
||||
|
||||
if (!this.options.modal) {
|
||||
element = '<div><form class="zammad-form"></form></div>'
|
||||
|
|
Loading…
Reference in a new issue