Browse Source

Now Notification.html has a label for button

soyjavi 13 năm trước cách đây
mục cha
commit
76b52e8f52
2 tập tin đã thay đổi với 4 bổ sung6 xóa
  1. 1 3
      kitchen-sink/index.html
  2. 3 3
      src/Lungo.Notification.js

+ 1 - 3
kitchen-sink/index.html

@@ -211,9 +211,7 @@
 
     <script src="../src/boot/Lungo.Boot.Layout.js"></script>
     <script src="../src/boot/Lungo.Boot.Events.js"></script>
-    <script src="../src/boot/Lungo.Boot.Data.js"></script>
-    <script src="../src/boot/Lungo.Boot.Section.js"></script>
-    <script src="../src/boot/Lungo.Boot.Article.js"></script>
+    <script src="../src/boot/Lungo.Boot.Data.js"></script> cdd
 
     <script src="../src/Lungo.Scroll.js"></script>
 

+ 3 - 3
src/Lungo.Notification.js

@@ -23,7 +23,7 @@ Lungo.Notification = (function(lng, undefined) {
         NOTIFICATION: '.notification',
         MODAL: '.notification .window',
         MODAL_HREF: '.notification .window a',
-        WINDOW_CLOSABLE: '.notification > [data-action=close], .notification > .error, .notification > .success',
+        WINDOW_CLOSABLE: '.notification [data-action=close], .notification > .error, .notification > .success',
         CONFIRM_BUTTONS: '.notification .confirm a.button'
     };
 
@@ -104,8 +104,8 @@ Lungo.Notification = (function(lng, undefined) {
     /**
      *
      */
-    var html = function(markup, closable) {
-        markup += (closable) ? '<a href="#" class="button large anchor" data-action="close">Close</a>' : '';
+    var html = function(markup, button) {
+        markup += (button) ? '<a href="#" class="button large anchor" data-action="close">' + button + '</a>' : '';
         _show(markup, 'html');
     };