Commit 1b1e406f authored by techird's avatar techird

bug fixes

parent f1b00e74
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
* @see <a href="http://www.d-project.com/" target="_blank">http://www.d-project.com/</a> * @see <a href="http://www.d-project.com/" target="_blank">http://www.d-project.com/</a>
* @see <a href="http://jeromeetienne.github.com/jquery-qrcode/" target="_blank">http://jeromeetienne.github.com/jquery-qrcode/</a> * @see <a href="http://jeromeetienne.github.com/jquery-qrcode/" target="_blank">http://jeromeetienne.github.com/jquery-qrcode/</a>
*/ */
var QRCode;
(function () { (function () {
//--------------------------------------------------------------------- //---------------------------------------------------------------------
...@@ -531,7 +530,7 @@ var QRCode; ...@@ -531,7 +530,7 @@ var QRCode;
* @param {String} [vOption.colorLight="#ffffff"] * @param {String} [vOption.colorLight="#ffffff"]
* @param {QRCode.CorrectLevel} [vOption.correctLevel=QRCode.CorrectLevel.H] [L|M|Q|H] * @param {QRCode.CorrectLevel} [vOption.correctLevel=QRCode.CorrectLevel.H] [L|M|Q|H]
*/ */
QRCode = function (el, vOption) { window.QRCode = function (el, vOption) {
this._htOption = { this._htOption = {
width : 256, width : 256,
height : 256, height : 256,
......
...@@ -58,7 +58,7 @@ KityMinder.registerUI('menu/share/share', function(minder) { ...@@ -58,7 +58,7 @@ KityMinder.registerUI('menu/share/share', function(minder) {
}); });
function getShareByPath(path) { function getShareByPath(path) {
if (!path) return null; if (!path || !shareList) return null;
var i = shareList.length; var i = shareList.length;
while (i--) { while (i--) {
...@@ -329,7 +329,7 @@ KityMinder.registerUI('menu/share/share', function(minder) { ...@@ -329,7 +329,7 @@ KityMinder.registerUI('menu/share/share', function(minder) {
}).then(function(result) { }).then(function(result) {
return (shareList = result.list || null); return (shareList = result.list || []);
}).then(renderShareList); }).then(renderShareList);
}); });
...@@ -413,6 +413,7 @@ KityMinder.registerUI('menu/share/share', function(minder) { ...@@ -413,6 +413,7 @@ KityMinder.registerUI('menu/share/share', function(minder) {
if (window.ZeroClipboard) { if (window.ZeroClipboard) {
ZeroClipboard.config({ ZeroClipboard.config({
swfPath: 'lib/ZeroClipboard.swf',
hoverClass: 'hover', hoverClass: 'hover',
activeClass: 'active' activeClass: 'active'
}); });
......
...@@ -43,6 +43,8 @@ KityMinder.registerUI('topbar/search', function(minder) { ...@@ -43,6 +43,8 @@ KityMinder.registerUI('topbar/search', function(minder) {
return; return;
} }
keyword = keyword.toLowerCase();
var newSearch = doSearch.lastKeyword != keyword; var newSearch = doSearch.lastKeyword != keyword;
doSearch.lastKeyword = keyword; doSearch.lastKeyword = keyword;
...@@ -52,7 +54,7 @@ KityMinder.registerUI('topbar/search', function(minder) { ...@@ -52,7 +54,7 @@ KityMinder.registerUI('topbar/search', function(minder) {
for (var i = startIndex; i <= endIndex; i++) { for (var i = startIndex; i <= endIndex; i++) {
var node = nodeSequence[i % nodeSequence.length]; var node = nodeSequence[i % nodeSequence.length];
var text = node.getText(); var text = node.getText().toLowerCase();
if (text.indexOf(keyword) != -1) { if (text.indexOf(keyword) != -1) {
setSearchResult(node); setSearchResult(node);
doSearch.lastIndex = i; doSearch.lastIndex = i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment