|
|
|
@ -125,9 +125,19 @@ menu.events._open = function (id,uri,_context){
|
|
|
|
|
id = id.replace(/ /g,'-')
|
|
|
|
|
|
|
|
|
|
var pid = '#content'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('.content').children().slideUp()
|
|
|
|
|
// if ( $('#'+id).parent() == null){
|
|
|
|
|
// $('.content').children().slideUp()
|
|
|
|
|
// }else{
|
|
|
|
|
// var parent = $('#'+id).parent()
|
|
|
|
|
// parent.slideUp()
|
|
|
|
|
// if (parent[0].id == null){
|
|
|
|
|
// pid = ('.' + parent[0].className)
|
|
|
|
|
// }else{
|
|
|
|
|
// pid = ('#'+parent[0].id)
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
$('#'+id).remove()
|
|
|
|
|
|
|
|
|
|
var httpclient = HttpClient.instance()
|
|
|
|
@ -286,6 +296,7 @@ var QCMSTabs = function(_layout,_context,_clickEvent){
|
|
|
|
|
this.tabs = jx.dom.get.instance('DIV')
|
|
|
|
|
this.tabs.className = 'tabs'
|
|
|
|
|
this._context = _context
|
|
|
|
|
this._layout = _layout
|
|
|
|
|
this._make = function (text,_item,_event){
|
|
|
|
|
var text = text.trim().replace(/(_|-)/ig,' ').trim()
|
|
|
|
|
var _context = this._context;
|
|
|
|
@ -297,14 +308,24 @@ var QCMSTabs = function(_layout,_context,_clickEvent){
|
|
|
|
|
_button.type= 'radio'
|
|
|
|
|
_button.id = text+'tab'
|
|
|
|
|
_button.name = 'menu-tabs'
|
|
|
|
|
_label.innerHTML = text.toLowerCase()
|
|
|
|
|
_label._uri = _item[0].uri
|
|
|
|
|
_button._uri = _label._uri
|
|
|
|
|
_button.value= text.toLowerCase()
|
|
|
|
|
|
|
|
|
|
_label.data = {id:text.toLowerCase(),uri:_item[0].uri}
|
|
|
|
|
// _button._uri = _label._uri
|
|
|
|
|
|
|
|
|
|
// if(this._layout.icons[text] != null) {
|
|
|
|
|
var _icon = jx.dom.get.instance('I')
|
|
|
|
|
_icon.className = this._layout.icons[text]
|
|
|
|
|
$(_label).append(_icon)
|
|
|
|
|
text = ' ' + text
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
$(_label).append(text)
|
|
|
|
|
// _button.value= text.toLowerCase()
|
|
|
|
|
$(_button).val(text.toLowerCase())
|
|
|
|
|
_label.htmlFor = _button.id
|
|
|
|
|
$(_label).on('click',function (){
|
|
|
|
|
|
|
|
|
|
menu.events._open(this.innerHTML,this._uri,_context)
|
|
|
|
|
menu.events._open(this.data.id,this.data.uri,_context)
|
|
|
|
|
})
|
|
|
|
|
// $(_button).on('click',function (){
|
|
|
|
|
// menu.events._open(this.value,this._uri,_context) ;})
|
|
|
|
@ -313,7 +334,7 @@ var QCMSTabs = function(_layout,_context,_clickEvent){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this._layout = _layout
|
|
|
|
|
|
|
|
|
|
this.init = function (){
|
|
|
|
|
var _me = this;
|
|
|
|
|
var _make = this._make
|
|
|
|
@ -330,6 +351,7 @@ var QCMSTabs = function(_layout,_context,_clickEvent){
|
|
|
|
|
this.tabs.className = 'tabs'
|
|
|
|
|
$('.main .menu').append(this.tabs)
|
|
|
|
|
$('.main .menu').css({'border':'1px solid transparent'})
|
|
|
|
|
$('.main .menu').css({'grid-template-columns':'64px auto'})
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
// We need to load the pages here ...
|
|
|
|
|