0013-Fix-a-problem-with-creating-svn-repositories-url.patch
| assets/javascripts/scm_create_pathname.coffee | ||
|---|---|---|
| 7 | 7 |
return undefined |
| 8 | 8 |
base = $('#uri_result_text').attr('data_base')
|
| 9 | 9 |
bpath = $('#uri_result_text').attr('data_basepath')
|
| 10 |
if $('#repository_scm').val().toUpperCase() == "SUBVERSION"
|
|
| 11 |
bprefix = "file://" |
|
| 12 |
else |
|
| 13 |
bprefix="" |
|
| 10 | 14 |
ext = $('#uri_result_text').attr('data_ext')
|
| 11 | 15 |
res = base+ (if curval.length > 0 then "."+curval else "")+(if ext.length > 0 then "."+ext else "") |
| 12 | 16 |
$('#uri_result_text').html(res)
|
| 13 |
pres = bpath + (if curval.length > 0 then "."+curval else "")+(if ext.length > 0 then "."+ext else "") |
|
| 17 |
pres = bprefix+bpath + (if curval.length > 0 then "."+curval else "")+(if ext.length > 0 then "."+ext else "")
|
|
| 14 | 18 |
$('#repository_url').val(pres)
|
| assets/javascripts/scm_create_pathname.js | ||
|---|---|---|
| 8 | 8 |
}); |
| 9 | 9 | |
| 10 | 10 |
this.checknamevalue = function() {
|
| 11 |
var base, bpath, curval, ext, pres, res; |
|
| 11 |
var base, bpath, bprefix, curval, ext, pres, res;
|
|
| 12 | 12 |
curval = $('#repositoryname').val();
|
| 13 | 13 |
if (curval === void 0) {
|
| 14 | 14 |
return void 0; |
| 15 | 15 |
} |
| 16 | 16 |
base = $('#uri_result_text').attr('data_base');
|
| 17 | 17 |
bpath = $('#uri_result_text').attr('data_basepath');
|
| 18 |
if ($('#repository_scm').val().toUpperCase() === "SUBVERSION") {
|
|
| 19 |
bprefix = "file://"; |
|
| 20 |
} else {
|
|
| 21 |
bprefix = ""; |
|
| 22 |
} |
|
| 18 | 23 |
ext = $('#uri_result_text').attr('data_ext');
|
| 19 | 24 |
res = base + (curval.length > 0 ? "." + curval : "") + (ext.length > 0 ? "." + ext : ""); |
| 20 | 25 |
$('#uri_result_text').html(res);
|
| 21 |
pres = bpath + (curval.length > 0 ? "." + curval : "") + (ext.length > 0 ? "." + ext : ""); |
|
| 26 |
pres = bprefix + bpath + (curval.length > 0 ? "." + curval : "") + (ext.length > 0 ? "." + ext : "");
|
|
| 22 | 27 |
return $('#repository_url').val(pres);
|
| 23 | 28 |
}; |
| 24 | 29 | |
| 25 |
- |
|