

stringLoadingWidgetMixin = {
    showLoading: function(on) {
		this.isLoading = on
        if (on) {
            this.element.hide()
            this.element.parent().addClass('loading');

            if (this.element.parent().find('.loading_alert').length == 0) {
                this.element.before('<span class="loading_alert">Загрузка...</span>')
            }
        } else {
            this.element.parent().removeClass('loading')
            $('.loading_alert', this.element.parent()).remove()
            this.element.show()
        }
    }

}
