view.js 530 B

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