瀏覽代碼

[form] [toolbar] prepend save button

version-14
Rushabh Mehta 12 年之前
父節點
當前提交
cdd68ef81f
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      public/js/wn/ui/appframe.js

+ 3
- 2
public/js/wn/ui/appframe.js 查看文件

@@ -200,10 +200,11 @@ wn.ui.AppFrame = Class.extend({
this.buttons[label] && this.buttons[label].remove();
var append_or_prepend = is_title ? "prependTo" : "appendTo";
this.buttons[label] = $(repl('<button class="btn btn-default">\
%(icon)s <span class="hidden-sm-inline">%(label)s</span></button>', args))
.appendTo(this.toolbar.find(".btn-group").css({"margin-right": "5px"}))
//.appendTo(title_toolbar ? this.$w.find(".title-button-area") : this.toolbar.find(".btn-group"))
[append_or_prepend](this.toolbar.find(".btn-group").css({"margin-right": "5px"}))
.attr("title", wn._(label))
.click(click);
if(is_title) {


Loading…
取消
儲存