added interface of the new decoupled libraries concept gh-92
This commit is contained in:
@ -155,11 +155,20 @@ jQuery('#adminForm').on('change', '#jform_add_php_view',function (e)
|
||||
});
|
||||
|
||||
|
||||
|
||||
jQuery(function() {
|
||||
jQuery('#open-libraries').html('<a href="index.php?option=com_componentbuilder&view=libraries"><?php echo JText::_('COM_COMPONENTBUILDER_LIBRARIES'); ?></a>');
|
||||
});
|
||||
jQuery('#jform_snippet').closest('.input-append').addClass('jform_snippet_input_width');
|
||||
jQuery('#jform_dynamic_get').closest('.input-append').addClass('jform_dynamic_get_input_width');jQuery(function() {
|
||||
jQuery("code").click(function() {
|
||||
jQuery(this).selText().addClass("selected");
|
||||
});
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_libraries',function (e) {
|
||||
e.preventDefault();
|
||||
getSnippets();
|
||||
});
|
||||
|
||||
jQuery.fn.selText = function() {
|
||||
var obj = this[0];
|
||||
@ -209,5 +218,8 @@ jQuery(document).ready(function() {
|
||||
jQuery(document).ready(function() {
|
||||
// get type value
|
||||
getLayoutDetails(<?php echo ($this->item->id) ? $this->item->id:9999; ?>);
|
||||
});
|
||||
});
|
||||
// some lang strings
|
||||
var select_a_snippet = '<?php echo JText::_('COM_COMPONENTBUILDER_SELECT_A_SNIPPET'); ?>';
|
||||
var create_a_snippet = '<?php echo JText::_('COM_COMPONENTBUILDER_CREATE_A_SNIPPET'); ?>';
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user