~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 19:47:51 UTC
  • Revision ID: d.holmen@gmail.com-20141111194751-bz42nt5xulh5sfhs
Reversed the if no http - add Funtion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
    function checkURL(url) {
135
135
        // if the URL doesn't contain HTTP(S) then add it!
136
136
        if (url.indexOf('http') >= 0) {
 
137
            return urlField.text
 
138
        }
 
139
        // no http, add
 
140
        else {
137
141
            console.debug("Debug: added http")
138
142
            return 'http://'+urlField.text
139
143
        }
140
 
        else {
141
 
             return urlField.text
142
 
        }
143
144
    }
144
145
 
145
146
}