Authored by 周少峰

'action'

... ... @@ -139,7 +139,7 @@
obj.textValue = text.value;
}
var conItem = href.indexOf("?") > -1 ? "&" : "?";
obj._href = obj.href = href + conItem + 'openby:yohobuy=' + getOpenbyParams(action, href);
obj._href = obj.href = href + conItem + 'openby:yohobuy=' + getOpenbyParams(action.val(), href);
editor.execCommand('link',utils.clearEmptyAttrs(obj) );
dialog.close();
... ... @@ -185,7 +185,7 @@
};
function getOpenbyParams(action, href) {
var params = {action: action.val()};
var params = {action: action};
var hrefParams = getUrlParams(href);
if (action == "go.h5") {
params.params = {url: href};
... ...