nodejs: create url without parameters

This commit is contained in:
Sergey Linnik
2016-03-30 14:50:12 +03:00
parent d3c450ba1b
commit eafe3adba6
3 changed files with 7 additions and 7 deletions

View File

@ -282,9 +282,9 @@ if (typeof jQuery != "undefined") {
jq(".try-editor").each(function () {
var href = jq(this).attr("href");
if (jq("#createSample").is(":checked")) {
href = href.replace("&create=true", "");
href += "&sample=true";
} else {
href += "&create=true";
href = href.replace("&sample=true", "");
}
jq(this).attr("href", href);
});