Make contact configurable

This commit is contained in:
Andre D 2015-06-23 22:09:35 -04:00
parent 9b3cb6fe86
commit ff9a6de339
4 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,4 @@
upload.config.server = '' // Empty if the webapp is in the same place as the server
// upload.config.server = 'https://yourserver.com/' // If the webapp is separated from the server - remember the trailing slash
upload.config.api_key = 'c61540b5ceecd05092799f936e27755f' // Should be the same as the server, used for uploading
upload.config.contact_link = 'mailto:someemail@email'

View file

@ -370,7 +370,7 @@
<div id="footer" class="footer">
<a href="https://github.com/Upload/Up1" target="_blank">Source Code</a>
-
<a href="mailto:contact@up1.ca" target="_blank">Contact</a>
<a href="#" id="contact" target="_blank">Contact</a>
</div>
</body>
</html>

View file

@ -16,9 +16,6 @@ upload.modules.addmodule({
><a class="btn" id="inbrowserbtn" target="_blank" href="#">View In Browser</a\
><a class="btn" id="deletebtn" href="#">Delete</a>\
</div>\
<div id="dlfooter" class="footer">\
<a href="mailto:contact@up1.ca" target="_blank">Contact</a>\
</div>\
</div>\
',
init: function () {

View file

@ -19,6 +19,13 @@ upload.modules = {
}
}
upload.modules.addmodule({
name: 'contactlink',
init: function() {
$('#contact').prop('href', upload.config.contact_link)
}
})
upload.modules.addmodule({
name: 'route',
init: function () {