milkode 1.8.8 → 1.8.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -2
- data/HISTORY.ja.rdoc +10 -0
- data/HISTORY.rdoc +10 -0
- data/Rakefile +1 -0
- data/lib/milkode/cdweb/views/index.haml +1 -0
- data/lib/milkode/cdweb/views/milkode.js +12 -0
- data/lib/milkode/cdweb/views/search_form.haml +1 -0
- data/lib/milkode/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 564ac12fd74916fa25c4726f478d659b737516e2
|
4
|
+
data.tar.gz: cd51b0a60400fa5d01fb21aabe0171f477ca6c54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f398c73a477f42a5cd4e378f0151356fdfb0df7e311147a5df6dbca85fffc0ba18f9950957e2ad3d8a9aec9d4b10db119ab2f57da3b281dbfc73eb1440f568a
|
7
|
+
data.tar.gz: e57e4c22154182b32dd82a510670e111c9a3fd76d01e429ab242e584c8a1a4fd5870fafd1dfc3ad3e4e239b2b26200dec742c2fe955453108353985c70cd2b60
|
data/.travis.yml
CHANGED
data/HISTORY.ja.rdoc
CHANGED
data/HISTORY.rdoc
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
=== 1.8.9 2016/07/17
|
2
|
+
|
3
|
+
* milk web
|
4
|
+
* Scroll to top when short-cut-key s pressed
|
5
|
+
* Select query strings on search box when focused
|
6
|
+
* Fix error when new search during relative url mode
|
7
|
+
|
8
|
+
* etc
|
9
|
+
* Fix Travis CI Error
|
10
|
+
|
1
11
|
=== 1.8.8 2016/04/18
|
2
12
|
|
3
13
|
* milk web
|
data/Rakefile
CHANGED
@@ -28,6 +28,7 @@
|
|
28
28
|
%input#query(name="query" type="text" style="width: 419px;")
|
29
29
|
%input(type="submit" value="#{t(:search)}")
|
30
30
|
%input(name='pathname' type='hidden' value='#{url_for '/home'}')
|
31
|
+
%input(name='relative_url' type='hidden' value='#{ENV['MILKODE_RELATIVE_URL']}')
|
31
32
|
<a href="#{url_for '/help'}">#{t(:help)}</a>
|
32
33
|
|
33
34
|
.row
|
@@ -17,6 +17,13 @@ function divideURL(url) {
|
|
17
17
|
|
18
18
|
var path = found[4];
|
19
19
|
|
20
|
+
// when using relative url mode
|
21
|
+
var relative_url = $(":hidden[name='relative_url']").val();
|
22
|
+
if (relative_url !== undefined) {
|
23
|
+
head += relative_url;
|
24
|
+
path = path.replace(new RegExp("^" + relative_url), "");
|
25
|
+
}
|
26
|
+
|
20
27
|
return [head, path];
|
21
28
|
}
|
22
29
|
|
@@ -205,6 +212,10 @@ $(document).ready(function() {
|
|
205
212
|
// $(this).select();
|
206
213
|
// });
|
207
214
|
|
215
|
+
$('#query').focus(function(){
|
216
|
+
$(this).select();
|
217
|
+
});
|
218
|
+
|
208
219
|
$('#shead').change(function(){
|
209
220
|
$('#search').click();
|
210
221
|
});
|
@@ -240,6 +251,7 @@ $(document).ready(function() {
|
|
240
251
|
if (!isFocused && k == 115) {
|
241
252
|
$("#query").focus();
|
242
253
|
e.preventDefault();
|
254
|
+
$("html,body").animate({ scrollTop: 0 }, "fast");
|
243
255
|
}
|
244
256
|
|
245
257
|
// S .. Search using a selected text (New tab)
|
data/lib/milkode/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: milkode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ongaeshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -486,7 +486,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
486
486
|
version: '0'
|
487
487
|
requirements: []
|
488
488
|
rubyforge_project:
|
489
|
-
rubygems_version: 2.
|
489
|
+
rubygems_version: 2.5.1
|
490
490
|
signing_key:
|
491
491
|
specification_version: 4
|
492
492
|
summary: Milkode is line based local source code search engine.
|