Skip to content

linkText id changes on every file, looks for linkText class#31

Open
scambra wants to merge 1 commit intoFmstrat:masterfrom
scambra:patch-1
Open

linkText id changes on every file, looks for linkText class#31
scambra wants to merge 1 commit intoFmstrat:masterfrom
scambra:patch-1

Conversation

@scambra
Copy link

@scambra scambra commented Jun 13, 2016

Fix for #3

@Rocco83
Copy link

Rocco83 commented Oct 16, 2016

Hi,

When this patch is planned to be released?
Is correct to keep the other two #linkText ?

function replaceUrl() {
        if ($('#linkText').css('display') == 'block') {
                var curUrl = $('#linkText').val();
                $('#linkText').val('Please wait...');
                makeUrl(curUrl);
        }
}

function makeUrl(curUrl, partUrl) {
        var shortenurl = OC.linkTo("shorten","makeurl").replace("apps/shorten","index.php/apps/shorten");
        $.post(shortenurl, { curUrl: curUrl }, function (data) {
                $('#linkText').val(data);
        });
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants