ソースを参照

Testing new View.Element method "loading" (1/2)

@soyjavi 14 年 前
コミット
560030fefe
2 ファイル変更5 行追加4 行削除
  1. 4 3
      examples/test/app/events.js
  2. 1 1
      examples/test/index.html

+ 4 - 3
examples/test/app/events.js

@@ -13,10 +13,11 @@ App.Events = (function(lng, undefined) {
     });
 
 
-    $$('section#sec-1 header a .icon.cloud').tap(function(event) {
+    $$('section#sec-1 header #btn-toggle-loading').tap(function(event) {
         var el = lng.dom(this);
-        el.hide();
-        el.siblings('.loading').removeClass('disable');
+
+        el.children('.icon').hide();
+        lng.View.Element.loading(this, 'white');
     });
 
     //SPECIAL

+ 1 - 1
examples/test/index.html

@@ -56,7 +56,7 @@
 
                 <a href="#profiles" data-target="aside" data-icon="users" data-label="User"></a>
                  -->
-                 <a href="#" data-icon="cloud" data-loading="white disable"></a>
+                 <a href="#" data-icon="cloud" id="btn-toggle-loading"></a>
                 <a href="#profiles" data-target="aside" data-icon="user"></a>
             </nav>