work on controllers/views started
This commit is contained in:
17
public/javascripts/posts/index.js
Normal file
17
public/javascripts/posts/index.js
Normal file
@@ -0,0 +1,17 @@
|
||||
function submit_quick_edit(e) {
|
||||
e.stopPropagation();
|
||||
$("#quick-edit").hide();
|
||||
$.post("/posts.js", $("#quick-edit form").serialize());
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$("#quick-edit form").submit(submit_quick_edit);
|
||||
$("#post_tag_string").keydown(function(e) {
|
||||
if (e.keyCode != 13)
|
||||
return;
|
||||
submit_quick_edit(e);
|
||||
e.stopPropagation();
|
||||
})
|
||||
$("#mode-box select").click()
|
||||
PostModeMenu.init();
|
||||
});
|
||||
Reference in New Issue
Block a user