Author: sevein
Date: Tue Apr 24 09:01:54 2012
New Revision: 11505
Log:
Show/hide realm filter when necessary plus a few js syntax fixes
Modified:
branches/2.0/js/dominion.js
Modified: branches/2.0/js/dominion.js
==============================================================================
--- branches/2.0/js/dominion.js Tue Apr 24 09:00:17 2012 (r11504)
+++ branches/2.0/js/dominion.js Tue Apr 24 09:01:54 2012 (r11505)
@@ -41,6 +41,7 @@
this.timeout = 150;
this.listen();
+ this.showRealm();
};
Autocomplete.prototype = {
@@ -175,11 +176,8 @@
case 27: // Escape
this.$element.val('');
- if (!this.shown)
- {
- return;
- }
this.hide();
+ this.hideRealm();
break;
default:
@@ -194,8 +192,8 @@
}, this.timeout);
}
- e.stopPropagation()
- e.preventDefault()
+ e.stopPropagation();
+ e.preventDefault();
},
keypress: function (e)
@@ -323,7 +321,7 @@
return;
}
- var $li = 'LI' == e.target.tagName ? $(e.target) :
$(e.target).closest('li');
+ var $li = 'LI' === e.target.tagName ? $(e.target) :
$(e.target).closest('li');
if ($li.hasClass('back'))
{
@@ -333,7 +331,7 @@
return this.showAll($li);
}
- if ('I' != e.target.tagName)
+ if ('I' !== e.target.tagName)
{
return this;
}
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.