Skip to content

Commit

Permalink
More theme and sort adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
quirkey committed Mar 23, 2010
1 parent f3fe6e0 commit a2f35d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions _attachments/javascripts/app.js
Expand Up @@ -697,13 +697,14 @@
.sortable({
items: '.slide',
axis: 'y',
scrollSpeed: 60,
stop: function(event, ui) {
e.trigger('slide-sort', {preso: preso, order: $(this).sortable('toArray')});
}
})
// clicking a slide goes to that slide
.find('.slide')
.click(function() {
.dblclick(function() {
var slide_id = $(this).attr('id').replace('sort-slide-', '');
e.redirect('#','preso', preso.id(), 'edit', slide_id);
})
Expand Down Expand Up @@ -733,8 +734,8 @@
.find('textarea[name="slide[content]"]')
.tabby()
.bind('keyup', function(ev) {
if ((ev.which == $.ui.keyCode.ENTER) && ev.ctrlKey) {
ev.preventDefault();
if ((ev.which == $.ui.keyCode.RIGHT) && ev.ctrlKey) {
ev.stopImmediatePropagation();
$(this).parents('form').submit();
} else {
slide_preview.drawPreview($(this).val());
Expand Down
3 changes: 3 additions & 0 deletions _attachments/stylesheets/swinger.css
Expand Up @@ -239,6 +239,8 @@ iframe {
}
.slide-sort .slide .slide-num {
position: absolute;
line-height: 100%;
font-family: Arial, sans-serif;
bottom: 10px;
right: 10px;
text-align: center;
Expand Down Expand Up @@ -347,6 +349,7 @@ iframe {
.simple-form input[type=text],
.simple-form input[type=password] {
width: 250px;
font-size: 14px;
}
.simple-form .submit {
float:none;
Expand Down
3 changes: 2 additions & 1 deletion _attachments/stylesheets/themes.css
Expand Up @@ -43,7 +43,7 @@
}
.slide .content pre {
font-family: Inconsolata, Monaco, Courier, mono;
font-size: 80%;
font-size: 100%;
}
.slide .content em {
font-style: italic;
Expand Down Expand Up @@ -332,6 +332,7 @@ pre.sh_sourceCode .sh_value{color:#f00;font-weight:normal;font-style:normal;}
.sammy pre.prettyprint {
margin: 2% 0;
padding: 2%;
word-spacing: 0.1em;
}
.sammy pre.sh_sourceCode{background-color:#ECECEC;color:#000;font-weight:normal;font-style:normal;}
.sammy pre.sh_sourceCode .sh_keyword{color:#66B0D6;font-weight:bold;font-style:normal;}
Expand Down

0 comments on commit a2f35d9

Please sign in to comment.