Skip to content
This repository has been archived by the owner on Mar 11, 2019. It is now read-only.

Commit

Permalink
Kango 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
akrylysov committed Oct 10, 2014
1 parent 6ac6655 commit 3e45037
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
output/
2 changes: 1 addition & 1 deletion ChristmasTree/src/common/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// @require jquery-1.9.1.min.js
// ==/UserScript==

var $ = window.$.noConflict(true); // Required for Opera and IE
var $ = window.$.noConflict(true); // Required for IE

var tree = $(document.createElement('img')).attr({
src: 'http://kangoextensions.com/misc/tree.png',
Expand Down
2 changes: 1 addition & 1 deletion GmailChecker/src/common/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ GmailChecker.prototype = {
kango.xhr.send(details, function(data) {
if (data.status == 200 && data.response != null) {
var count = 0;
var matches = data.response.match(/<fullcount>(\d+)<\/fullcount>/); // Old IE versions doensn't support getElementsByTagNameNS, so we using RegExp
var matches = data.response.match(/<fullcount>(\d+)<\/fullcount>/); // Old IE versions don't support getElementsByTagNameNS, so we have to use RegExp
if (matches != null && matches.length > 0) {
count = matches[1];
}
Expand Down
19 changes: 1 addition & 18 deletions NotificationsDemo/src/common/main.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
var counter = 0;

kango.ui.browserButton.addEventListener(kango.ui.browserButton.event.COMMAND, function(event) {
var notification = kango.ui.notifications.createNotification('Title', 'Notification number ' + (++counter), 'http://kangoextensions.com/images/logos/kango.png');

var x = 0;
notification.addEventListener(notification.event.CLICK, function() {
if (x == 2) {
notification.close();
}
x++;
kango.ui.notifications.show('Title', 'Notification number ' + (++counter), 'http://kangoextensions.com/images/logos/kango.png', function() {
kango.console.log('Notification click');
});

notification.addEventListener(notification.event.SHOW, function() {
kango.console.log('Notification show');
});

notification.addEventListener(notification.event.CLOSE, function() {
kango.console.log('Notification close');
});

notification.show();
});

0 comments on commit 3e45037

Please sign in to comment.