Skip to content

Commit

Permalink
Update w2compat.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mrg2001 committed Jun 6, 2021
1 parent 1413dc1 commit f1ab7bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/w2compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ import { w2toolbar } from './w2toolbar'
if ($.isPlainObject(options)) {
let obj
if (type == 'w2form') {
let html = this.html()
obj = new w2form(options)
if (html) obj.formHTML = html
if (this.find('.w2ui-field').length > 0) {
obj.formHTML = this.html()
}
}
if (type == 'w2grid') obj = new w2grid(options)
if (type == 'w2layout') obj = new w2layout(options)
Expand Down

0 comments on commit f1ab7bd

Please sign in to comment.