Permalink
Browse files

Add autogrow behaviour.

  • Loading branch information...
1 parent 015da5a commit e1001bdf0f5ce348fb5a45ae267eac14e324897f @huerlisi committed Jan 7, 2011
Showing with 6 additions and 5 deletions.
  1. +0 −5 public/javascripts/application.js
  2. +6 −0 public/javascripts/cyt.js
@@ -140,11 +140,6 @@ function addQuestionSelectionBehaviour() {
updateQuestionSelections();
}
-// Autogrow
-function addAutogrowBehaviour() {
- $(".autogrow").elastic();
-}
-
function addMultipleSelectBehaviourForQuizAssignments() {
var addLink = $('a[data-multipleselect-add]');
addLink.prev('li').append(addLink);
@@ -27,6 +27,7 @@ function addLinkifyContainersBehaviour() {
var container = element.closest(element.data('href-container'));
container.css('cursor', "pointer");
var href = element.attr('href');
+ element.addClass('linkified_container')
container.delegate('*', 'click', {href: href}, function(event) {
// Don't override original link behaviour
@@ -37,6 +38,11 @@ function addLinkifyContainersBehaviour() {
});
};
+// Autogrow
+function addAutogrowBehaviour() {
+ $(".autogrow").elastic();
+}
+
// Add tooltips for overview
function addTooltipBehaviour() {
$(".tooltip-title[title]").each(function() {

0 comments on commit e1001bd

Please sign in to comment.