added button in admin to upload favicon + show current favicon image

This commit is contained in:
psychobunny
2013-12-09 12:52:12 -05:00
parent bcb364c4d4
commit 35f17db141
2 changed files with 13 additions and 3 deletions

View File

@@ -75,13 +75,20 @@ define(['uploader'], function(uploader) {
});
$('#uploadLogoBtn').on('click', function() {
uploader.open(RELATIVE_PATH + '/admin/uploadlogo', function(image) {
$('#logoUrl').val(image);
});
uploader.hideAlerts();
});
$('#uploadLogoBtn').on('click', function() {
uploader.open(RELATIVE_PATH + '/admin/uploadfavicon', function() {
$('#favicon').attr('src', './../favicon.ico?v=' + new Date().getTime());
});
uploader.hideAlerts();
});
};
Settings.remove = function(key) {