mirror of https://gitee.com/karson/fastadmin.git
parent
65a3080da9
commit
a0eca04ae9
|
|
@ -114,7 +114,7 @@ function build_toolbar($btns = NULL, $attr = [])
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
list($href, $class, $icon, $text, $title) = $btnAttr[$v];
|
list($href, $class, $icon, $text, $title) = $btnAttr[$v];
|
||||||
$extend = $v == 'import' ? 'id="btn-import-' . \fast\Random::alpha() . '" data-url="ajax/upload" data-mimetype="csv,xsl,xslx" data-multiple="false"' : '';
|
$extend = $v == 'import' ? 'id="btn-import-' . \fast\Random::alpha() . '" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"' : '';
|
||||||
$html[] = '<a href="' . $href . '" class="' . $class . '" title="' . $title . '" ' . $extend . '><i class="' . $icon . '"></i> ' . $text . '</a>';
|
$html[] = '<a href="' . $href . '" class="' . $class . '" title="' . $title . '" ' . $extend . '><i class="' . $icon . '"></i> ' . $text . '</a>';
|
||||||
}
|
}
|
||||||
return implode(' ', $html);
|
return implode(' ', $html);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -44,6 +44,7 @@ define(['jquery', 'bootstrap', 'upload', 'validator'], function ($, undefined, U
|
||||||
parent.$(".btn-refresh").trigger("click");
|
parent.$(".btn-refresh").trigger("click");
|
||||||
var index = parent.Layer.getFrameIndex(window.name);
|
var index = parent.Layer.getFrameIndex(window.name);
|
||||||
parent.Layer.close(index);
|
parent.Layer.close(index);
|
||||||
|
return false;
|
||||||
}, function (data, ret) {
|
}, function (data, ret) {
|
||||||
that.holdSubmit(false);
|
that.holdSubmit(false);
|
||||||
submitBtn.removeClass("disabled");
|
submitBtn.removeClass("disabled");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue