Skip to content

Commit

Permalink
js: Fix Yona's jQuery template related bug
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Apr 18, 2017
1 parent 0dd9362 commit 5cd75c4
Show file tree
Hide file tree
Showing 3 changed files with 7,637 additions and 219 deletions.
2 changes: 1 addition & 1 deletion public/javascripts/common/yobi.ui.Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
var aButtonStyles = htOptions.aButtonStyles || [];

for(var i = 0, nLength = aButtonLabels.length; i < nLength; i++){
aButtonsHTML.push($.tmpl(htVar.sTplCustomButton, {
aButtonsHTML.push($yobi.tmpl(htVar.sTplCustomButton, {
"text" : aButtonLabels[i],
"class": aButtonStyles[i] || (aButtonStyles.length === 0 && i === nLength-1 ? "ybtn-primary" : "ybtn-default")
}));
Expand Down
Loading

0 comments on commit 5cd75c4

Please sign in to comment.