view.js 454 B

1234567891011121314151617181920
  1. App.View = (function(lng, App, undefined) {
  2. toggleLoading = function(event) {
  3. var el = lng.dom(this);
  4. if (el.children('.loading').length > 0) {
  5. el.children('.icon').show();
  6. lng.View.Element.loading(this);
  7. } else {
  8. el.children('.icon').hide();
  9. lng.View.Element.loading(this, 'white');
  10. }
  11. };
  12. return {
  13. toggleLoading: toggleLoading
  14. };
  15. })(LUNGO, App);