Skip to content

Commit 9cf416c

Browse files
committed
add a js issue
1 parent e862ae6 commit 9cf416c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

app/assets/javascripts/admin_publify.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/* typewatch() borrowed from http://stackoverflow.com/questions/2219924/idiomatic-jquery-delayed-event-only-after-a-short-pause-in-typing-e-g-timew */
2-
var typewatch = (function(){
2+
var typewatch = (function(){
33
var timer = 0;
44
return function(callback, ms){
55
clearTimeout (timer);
66
timer = setTimeout(callback, ms);
7-
}
7+
}
88
})();
99

1010
function autosave_request(e) {
@@ -41,7 +41,7 @@ function tag_manager() {
4141
}
4242

4343
function save_article_tags() {
44-
$('#article_keywords').val($('#article_form').find('input[name="hidden-article[keywords]"]').val());
44+
$('#article_keywords').val($('#article_form').find('input[name="hidden-article[keywords]"]'));
4545
}
4646

4747
function doneTyping () {
@@ -53,17 +53,17 @@ function doneTyping () {
5353
function set_savebar() {
5454
var typingTimer;
5555
var doneTypingInterval = 3000;
56-
56+
5757
$( "#article_body_and_extended" ).keydown(function() {
5858
$( "#save-bar").fadeOut(2000, function() {
59-
59+
6060
});
6161
clearTimeout(typingTimer);
6262
});
63-
63+
6464
$('#article_body_and_extended').keyup(function(){
6565
typingTimer = setTimeout(doneTyping, doneTypingInterval);
66-
});
66+
});
6767
}
6868

6969
// From http://www.shawnolson.net/scripts/public_smo_scripts.js
@@ -88,4 +88,4 @@ $(document).ready(function() {
8888
$(document).delegate('*[data-toggle="lightbox"]', 'click', function(event) {
8989
event.preventDefault();
9090
$(this).ekkoLightbox();
91-
});
91+
});

0 commit comments

Comments
 (0)