~danielholm/account-plugin-owncloud/account-plugin-owncloud

« back to all changes in this revision

Viewing changes to qml/owncloud/NewAccount.qml

  • Committer: DanielHolm
  • Date: 2014-11-11 17:49:36 UTC
  • Revision ID: d.holmen@gmail.com-20141111174936-6011d7u0eddcyj1o
Added some output.

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
    }
119
119
 
120
120
    function credentialsStored() {
121
 
        console.log("Credentials stored, id: " + creds.credentialsId)
 
121
        console.log("Debug: Credentials stored, id: " + creds.credentialsId)
122
122
        if (creds.credentialsId == 0) return
123
123
 
124
124
        globalAccountSettings.updateServiceEnabled(true)
130
130
        account.sync()
131
131
    }
132
132
 
 
133
    // check host url for http
133
134
    function checkURL(url) {
134
135
        // if the URL doesn't contain HTTP(S) then add it!
135
136
        if (url.indexOf('http') >= 0) {
 
137
            console.debug("Debug: added http")
136
138
            return 'http://'+urlField.text
137
139
        }
138
140
        else {