Commit 70c2fe76 authored by OJ Random's avatar OJ Random

issue7 use refresh button

parent b10c188a
......@@ -889,14 +889,10 @@ var sortByColumn = 0;
var sortReversOrder = false;
var timezoneOffsetMilliseconds = 0;
var isDownloadButton = true;
function setShareButton() {
isDownloadButton = true;
$("#button_share_box").css({ 'color': '' });
if(box.hasChanges()) {
$("#button_share_box").css({ 'color': 'red' });
isDownloadButton = false;
}
var counter = 0;
if(box.content.cards) {
......@@ -914,12 +910,6 @@ function setShareButton() {
logger.log('Share button: ' + counter + ' card with changes');
$("#button_share_box_counter").html('<sup>' + counter + '</sup>');
$("#button_share_box").css({ 'color': 'red' });
isDownloadButton = false;
}
if(isDownloadButton) {
$('#button_share_box').find('.fa').removeClass("fa-cloud-upload").addClass("fa-cloud-download");
} else {
$('#button_share_box').find('.fa').removeClass("fa-cloud-download").addClass("fa-cloud-upload");
}
$("#button_share_box").show();
}
......@@ -1569,12 +1559,7 @@ $(document).on("click", "#button_delete_box", function() {
$(document).on("click", "#button_share_box", function() {
logger.log('clicked button share box');
if(isDownloadButton) {
uploadBox();
// downLoadBoxForURL();
} else {
uploadBox();
}
});
function uploadBox() {
......
......@@ -17,7 +17,7 @@
<button class="btn flashcards_nav" id="button_flashcards_learn_play"><i class="fa fa-play fa-lg"></i> <sup><span id="span_flashcards_cards_due"></span></sup></button>
</div>
<button class="btn btn-default nav-pill ml-auto" id="button_share_box">
<i class="fa fa-cloud-upload fa-lg"></i>
<i class="fa fa-refresh fa-lg"></i>
<span id="button_share_box_counter"></span>
</button>
<button class="btn btn-default nav-pill ml-auto" id="button_flashcards_list_close" style="display: none;">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment