Sha256: f1fe72a6f2df4ef62c4742e4631269d8830542ae333484950516581e577aeeb7

Contents?: true

Size: 1.05 KB

Versions: 9

Compression:

Stored size: 1.05 KB

Contents

//= require jquery
//= require jquery_ujs
//= require ./bootstrap.js
//= require ./wysihtml5-0.3.0.min.js
//= require ./bootstrap3-wysihtml5.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();

    $('.wysihtml5').each(function(i, elem) {
      $(elem).wysihtml5();
    });

});

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.10 app/assets/javascripts/caseadilla/caseadilla.js
caseadilla-0.0.9 app/assets/javascripts/caseadilla/caseadilla.js
caseadilla-0.0.8 app/assets/javascripts/caseadilla/caseadilla.js
caseadilla-0.0.7 app/assets/javascripts/caseadilla/caseadilla.js
caseadilla-0.0.6 app/assets/javascripts/caseadilla/caseadilla.js
caseadilla-0.0.5 app/assets/javascripts/caseadilla/caseadilla.js
caseadilla-0.0.4 app/assets/javascripts/caseadilla/caseadilla.js
caseadilla-0.0.3 app/assets/javascripts/caseadilla/caseadilla.js
caseadilla-0.0.2 app/assets/javascripts/caseadilla/caseadilla.js