Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit ed221ea

Browse files
author
Charles Ma
committed
ENH: fixed bug #269 Added glow on start button
1 parent 829b905 commit ed221ea

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

core/public/js/upload/upload.simpleupload.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@
110110
}
111111
}
112112

113+
$('#startUploadLink').qtip({
114+
content: {
115+
attr: 'qtip'
116+
}
117+
});
118+
113119

114120
function initJqueryFileupload()
115121
{
@@ -135,6 +141,10 @@
135141
$(this).parent('tr').find('.file_upload_cancel button').click();
136142
}
137143
});
144+
145+
$('#startUploadLink').css('box-shadow', '0 0 5px blue');
146+
$('#startUploadLink').css('-webkit-box-shadow', '0 0 5px blue');
147+
$('#startUploadLink').css('-moz-box-shadow', '0 0 5px blue');
138148
},
139149
onComplete: function (event, files, index, xhr, handler) {
140150
$('.uploadedSimple').val(parseInt($('.uploadedSimple').val())+1);
@@ -150,6 +160,9 @@
150160
return false;
151161
}
152162
$('.file_upload_start button').click();
163+
$('#startUploadLink').css('box-shadow', '0 0 0px blue');
164+
$('#startUploadLink').css('-webkit-box-shadow', '0 0 0px blue');
165+
$('#startUploadLink').css('-moz-box-shadow', '0 0 0px blue');
153166
return false;
154167
});
155168

core/translation/fr-main.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,5 @@ Teaser;Courte descriptionMy Language;Ma Langue
258258
Delete the post;Supprimer la publication
259259
or;ou
260260
upload a folder;ajouter un r�pertoire
261-
upload files;ajouter des fichiers
261+
upload files;ajouter des fichiers
262+
Don't forget to start the upload.;N'oubliez pas de lancer l'upload.

core/views/upload/simpleupload.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ PURPOSE. See the above copyright notices for more information.
8585
<input id="btnCancel" style="display:none;" type="button" value="Cancel All Uploads" onclick="swfu.cancelQueue();" disabled="disabled" style="margin-left: 2px; font-size: 8pt; height: 29px;" />
8686

8787
<span id="btnStartUpload" >
88-
<input style="margin-left:0px;" id='startUploadLink' class="globalButton" type="button" value="<?php echo $this->t('Start Upload')?>" />
88+
<input style="margin-left:0px;" id='startUploadLink' class="globalButton" type="button" qtip="<?php echo $this->t("Don't forget to start the upload.")?>" value="<?php echo $this->t('Start Upload')?>" />
8989
</span>
9090

9191
</div>

0 commit comments

Comments
 (0)