Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
1b1e406f
Commit
1b1e406f
authored
Oct 10, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixes
parent
f1b00e74
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
qrcode.js
lib/qrcode.js
+1
-2
share.js
ui/menu/share/share.js
+3
-2
search.js
ui/topbar/search.js
+3
-1
No files found.
lib/qrcode.js
View file @
1b1e406f
...
@@ -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
,
...
...
ui/menu/share/share.js
View file @
1b1e406f
...
@@ -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'
});
});
...
...
ui/topbar/search.js
View file @
1b1e406f
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment