PageRenderTime 22ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/media/jui/js/cms.js

https://bitbucket.org/eternaware/joomus
JavaScript | 18 lines | 8 code | 2 blank | 8 comment | 2 complexity | e2d3cfc44ea5da299bb2b27898bc8d81 MD5 | raw file
Possible License(s): LGPL-2.1
 1/**
 2 * @copyright  Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 3 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 4 */
 5
 6// Only define the Joomla namespace if not defined.
 7if (typeof(Joomla) === 'undefined') {
 8	var Joomla = {};
 9}
10
11/**
12 * Sets the HTML of the container-collapse element
13 */
14Joomla.setcollapse = function(url, name, height) {
15    if (!document.getElementById('modal-' + name)) {
16        document.getElementById('container-collapse').innerHTML = '<div class="collapse fade" id="modal-' + name + '"><iframe class="iframe" src="' + url + '" height="'+ height + '" width="100%"></iframe></div>';
17    }
18}