Sha256: 2f918b06d5899d81c3bf6034a1a7da51719c75c90745b90f541e87c769ab30eb

Contents?: true

Size: 1.04 KB

Versions: 9

Compression:

Stored size: 1.04 KB

Contents

//= require jquery
//= require jquery_ujs
//= require ./bootstrap.js
//

jQuery(document).ready(function() {

	if (current_controller) {
		active_tab = $("#tab-" + current_controller);
		if (active_tab) {
			active_tab.addClass("active");
		}
	}

	if($("#notice")) {
		setTimeout(function() {
			$("#notice").fadeOut(1000);
		}, 10000);
	};

	$("#generate-random-password-checkbox").click(function() {
	  if ($(this).is(':checked')) {
	  	$("#caseadilla_user_password").attr("disabled", true);
	  	$("#caseadilla_user_password_confirmation").attr("disabled", true);
	  }
	  else {
	  	$("#caseadilla_user_password").removeAttr("disabled");
	  	$("#caseadilla_user_password_confirmation").removeAttr("disabled");
	  }
	});

	$(".alert").alert();

  $('.wysiwym').each(function(i, elem) {
    $(elem).wymeditor({
			basePath: "/assets/caseadilla/wymeditor/",
			skin: "compact"
		});
  });

});

toggleDiv = function(div) {
	switch ($("#"+div).css('display')) {
		case "none":
			$("#"+div).fadeIn(300);
		break;

		case "block":
			$("#"+div).fadeOut(300);
		break;
	}
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
caseadilla-0.0.19 app/assets/javascripts/caseadilla/caseadilla.js
caseadilla-0.0.18 app/assets/javascripts/caseadilla/caseadilla.js
caseadilla-0.0.17 app/assets/javascripts/caseadilla/caseadilla.js
caseadilla-0.0.16 app/assets/javascripts/caseadilla/caseadilla.js
caseadilla-0.0.15 app/assets/javascripts/caseadilla/caseadilla.js
caseadilla-0.0.14 app/assets/javascripts/caseadilla/caseadilla.js
caseadilla-0.0.13 app/assets/javascripts/caseadilla/caseadilla.js
caseadilla-0.0.12 app/assets/javascripts/caseadilla/caseadilla.js
caseadilla-0.0.11 app/assets/javascripts/caseadilla/caseadilla.js