Created
January 19, 2011 19:55
-
-
Save jejacks0n/786737 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
window['midas_setup_container'] = function() { | |
$('midas_container_selector').childElements().each(function(element) { | |
Event.observe(element, 'click', function(event) { | |
event.stop(); | |
this.execute('insertHTML', {action:'insertHTML', value: '<div class="' + element.getAttribute('data-class') + '"><br/></div>'}); | |
}.bind(this)); | |
}.bind(this)); | |
} | |
</script> | |
<div id="midas_container_selector" class="midas-select-content"> | |
<h3 data-class="col-06">6 Column Container</h3> | |
<h3 data-class="col-12">12 Column Container</h3> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment