I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

0013-Fix-a-problem-with-creating-svn-repositories-url.patch

Elektritter Messinger, 08 May 2014 12:27

Download (2.51 KB)

View differences:

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
- 
Terms of use | Privacy policy