data[this.settings.selectParameter] = this.model.get(this.settings.selectParameterValue);
+ that.$el.addClass('progress');
$.ajax({
url: url,
type: 'POST',
.done(function() {
that.model.set('selected', !selected);
})
- .fail(showError);
+ .fail(showError)
+ .always(function() {
+ that.$el.removeClass('progress');
+ });
}
});
padding: 5px 10px;
border-top: 1px solid #e0e0e0;
color: #404040;
- transition: all 0.3s ease;
+ transition: -webkit-transform 0.3s ease;
+ transition: -ms-transform 0.3s ease;
+ transition: transform 0.3s ease;
}
.select-list-list > li.removed {
transform: translateX(100%);
}
-.select-list-list > li.added {
- -webkit-transform: translateX(-100%);
- -moz-transform: translateX(-100%);
- -ms-transform: translateX(-100%);
- -o-transform: translateX(-100%);
- transform: translateX(-100%);
-}
+ .select-list-list > li.added {
+ -webkit-transform: translateX(-100%);
+ -moz-transform: translateX(-100%);
+ -ms-transform: translateX(-100%);
+ -o-transform: translateX(-100%);
+ transform: translateX(-100%);
+ }
+
+ .select-list-list > li.progress {
+ background: url(../images/loading.gif) no-repeat 10px 5px;
+ }
+
+ .select-list-list > li.progress .select-list-list-checkbox {
+ visibility: hidden;
+ }
+
.select-list-list-checkbox {
display: inline-block;