Commit 1b1e406f authored by techird's avatar techird

bug fixes

parent f1b00e74
......@@ -8,7 +8,6 @@
* @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>
*/
var QRCode;
(function () {
//---------------------------------------------------------------------
......@@ -531,7 +530,7 @@ var QRCode;
* @param {String} [vOption.colorLight="#ffffff"]
* @param {QRCode.CorrectLevel} [vOption.correctLevel=QRCode.CorrectLevel.H] [L|M|Q|H]
*/
QRCode = function (el, vOption) {
window.QRCode = function (el, vOption) {
this._htOption = {
width : 256,
height : 256,
......
......@@ -58,7 +58,7 @@ KityMinder.registerUI('menu/share/share', function(minder) {
});
function getShareByPath(path) {
if (!path) return null;
if (!path || !shareList) return null;
var i = shareList.length;
while (i--) {
......@@ -329,7 +329,7 @@ KityMinder.registerUI('menu/share/share', function(minder) {
}).then(function(result) {
return (shareList = result.list || null);
return (shareList = result.list || []);
}).then(renderShareList);
});
......@@ -413,6 +413,7 @@ KityMinder.registerUI('menu/share/share', function(minder) {
if (window.ZeroClipboard) {
ZeroClipboard.config({
swfPath: 'lib/ZeroClipboard.swf',
hoverClass: 'hover',
activeClass: 'active'
});
......
......@@ -43,6 +43,8 @@ KityMinder.registerUI('topbar/search', function(minder) {
return;
}
keyword = keyword.toLowerCase();
var newSearch = doSearch.lastKeyword != keyword;
doSearch.lastKeyword = keyword;
......@@ -52,7 +54,7 @@ KityMinder.registerUI('topbar/search', function(minder) {
for (var i = startIndex; i <= endIndex; i++) {
var node = nodeSequence[i % nodeSequence.length];
var text = node.getText();
var text = node.getText().toLowerCase();
if (text.indexOf(keyword) != -1) {
setSearchResult(node);
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