Permalink
Browse files

adding some css and js files

  • Loading branch information...
1 parent eb70e27 commit 9c5aef3650c20023e9161788c0c4891925c28fbe @bryantAXS committed Mar 8, 2012
Showing with 46 additions and 0 deletions.
  1. +9 −0 css/entry_type.css
  2. +37 −0 javascript/entry_type.js
View
@@ -0,0 +1,9 @@
+.entry_type_matrix_col_label{
+ border-bottom: 1px dotted #D0D7DF;
+ font-weight:bold !important;
+ margin-bottom:20px;
+}
+
+.assets .entry_type_matrix_col_label{
+ margin: 7px 10px 10px 10px;
+}
@@ -0,0 +1,37 @@
+(function( $ ) {
+ /**
+ * @attribute destroyed
+ * @parent specialevents
+ * @download http://jmvcsite.heroku.com/pluginify?plugins[]=jquery/dom/destroyed/destroyed.js
+ * @test jquery/event/destroyed/qunit.html
+ * Provides a destroyed event on an element.
+ * <p>
+ * The destroyed event is called when the element
+ * is removed as a result of jQuery DOM manipulators like remove, html,
+ * replaceWith, etc. Destroyed events do not bubble, so make sure you don't use live or delegate with destroyed
+ * events.
+ * </p>
+ * <h2>Quick Example</h2>
+ * @codestart
+ * $(".foo").bind("destroyed", function(){
+ * //clean up code
+ * })
+ * @codeend
+ * <h2>Quick Demo</h2>
+ * @demo jquery/event/destroyed/destroyed.html
+ * <h2>More Involved Demo</h2>
+ * @demo jquery/event/destroyed/destroyed_menu.html
+ */
+
+ var oldClean = jQuery.cleanData;
+
+ $.cleanData = function( elems ) {
+ for ( var i = 0, elem;
+ (elem = elems[i]) !== undefined; i++ ) {
+ $(elem).triggerHandler("destroyed");
+ //$.event.remove( elem, 'destroyed' );
+ }
+ oldClean(elems);
+ };
+
+})(jQuery)

0 comments on commit 9c5aef3

Please sign in to comment.