Commit add2413e by Qiang Xue

better way of generating html code.

parent c44e91bd
......@@ -140,7 +140,8 @@ yii = (function ($) {
if (!action || !action.match(/(^\/|:\/\/)/)) {
action = window.location.href;
}
$form = $('<form method="' + method + '" action="' + action + '"></form>');
$form = $('<form method="' + method + '"></form>');
$form.prop('action', action);
var target = $e.prop('target');
if (target) {
$form.attr('target', target);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment