Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: mozilla/zamboni
base: master
...
head fork: spasovski/zamboni
  • 1 commit
  • 5 files changed
  • 0 commit comments
  • 1 contributor
32 media/css/devreg/lib.styl
View
@@ -167,3 +167,35 @@ webkit-spin() {
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
}
+
+animation($animation) {
+ -webkit-animation: $animation;
+ -moz-animation: $animation;
+ animation: $animation;
+}
+
+@-webkit-keyframes spin {
+ from { -webkit-transform: rotate(0turn); }
+ to { -webkit-transform: rotate(1turn); }
+}
+@keyframes spin {
+ from { transform: rotate(0turn); }
+ to { transform: rotate(1turn); }
+}
+
+spinner-base-image(type = '') {
+ if (type == 'retina') {
+ background-image: url(../../img/mkt/btn_spinner_2x.png);
+ background-size: 30px auto;
+ } else {
+ background: url(../../img/mkt/btn_spinner.png) no-repeat center;
+ }
+}
+
+spinner-base() {
+ animation(unquote('0.9s spin infinite steps(30)'));
+ height: 30px;
+ margin: 0 auto;
+ spinner-base-image();
+ width: 30px;
+}
16 media/css/devreg/submit-details.styl
View
@@ -267,6 +267,16 @@
}
}
+.spinner:after {
+ content: "";
+ left: 50%;
+ margin-left: -15px;
+ position: absolute;
+ spinner-base();
+ top: 3px;
+ z-index: 2000;
+}
+
#submit-persona, #addon-edit-license {
.devhub-form .brform {
margin-bottom: 10px;
@@ -352,6 +362,12 @@
}
}
+@media $retina {
+ .spinner:after {
+ spinner-base-image('retina');
+ }
+}
+
// Ugly but fixes hidden fields on non-default locale
// TODO: Remove this once L10N support is added to marketplace
#temp-locale-container {
4 media/js/devreg/devhub.js
View
@@ -778,12 +778,12 @@ function initUploadImages() {
// Remove old errors.
$(this).closest('.image_preview').find('.errorlist').hide();
// Don't let users submit a form.
- $('.edit-media-button button, #submit-media button.prominent').attr('disabled', true);
+ $('.edit-media-button button, #submit-media button.prominent').prop('disabled', true).addClass('spinner');
}
function upload_finished_all(e) {
// They can submit again
- $('.edit-media-button button, #submit-media button.prominent').attr('disabled', false);
+ $('.edit-media-button button, #submit-media button.prominent').prop('disabled', false).removeClass('spinner');
}
function upload_start(e, file) {
2  mkt/submit/templates/submit/details.html
View
@@ -173,7 +173,7 @@ <h2 class="output">{{ addon.name }}</h2>
{{ form_field(form_basic.publish, tooltip=True) }}
- <button class="prominent continue c" type="submit">
+ <button class="prominent continue" type="submit">
{{ _('Continue') }}
</button>
</form>
2  templates/global
@@ -1 +1 @@
-Subproject commit a909f7aa1cbc101897cb81196bce819e3637c070
+Subproject commit 3f47a728441e280aa02eefca51bbb706cb33723b

No commit comments for this range

Something went wrong with that request. Please try again.