|
|
|
@ -21,14 +21,14 @@ qcms.menu.Common = function (){
|
|
|
|
|
if($(`${_parentId} #${_domId}`).length){
|
|
|
|
|
$(`${_parentId} #${_domId}`).remove()
|
|
|
|
|
}
|
|
|
|
|
$(`${_parentId}`).children().slideUp('fast',()=>{
|
|
|
|
|
$(`${_parentId}`).append(_dom)
|
|
|
|
|
var _found = qcms.html.hasNode ($(`${_parentId}`),$(_domId))
|
|
|
|
|
if (_found == 0){
|
|
|
|
|
$(`${_parentId}`).children().slideUp('fast',()=>{
|
|
|
|
|
$(`${_parentId}`).append(_dom)
|
|
|
|
|
this._finalize(`${_parentId} #${_domId}`)
|
|
|
|
|
|
|
|
|
|
this._finalize(`${_parentId} #${_domId}`)
|
|
|
|
|
//
|
|
|
|
|
// we should finalize the scripts
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
@ -72,7 +72,6 @@ qcms.menu.Basic = function (_layout,_outputId,_domId){
|
|
|
|
|
$(_div).on('click', function (){
|
|
|
|
|
//
|
|
|
|
|
// how do we process this ...
|
|
|
|
|
console.log(this.data)
|
|
|
|
|
if (this.data.type == 'redirect') {
|
|
|
|
|
window.open(this.data.url,_me._format(this.data.text))
|
|
|
|
|
}else if (this.data.type == 'dialog'){
|
|
|
|
@ -173,9 +172,8 @@ qcms.menu.Tabs = function (_layout,_outputId,_domId){
|
|
|
|
|
// var _parentId = this._parentId
|
|
|
|
|
var _me = this ;
|
|
|
|
|
$(_label).on('click',function (){
|
|
|
|
|
alert('....')
|
|
|
|
|
|
|
|
|
|
// _me._open(this.data.id,this.data.uri,_me._parentId)
|
|
|
|
|
console.log([_me._format(this.data.text),this.data.uri,_parentId])
|
|
|
|
|
_me._open(_me._format(this.data.text),this.data.uri,_parentId)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
@ -187,7 +185,6 @@ qcms.menu.Tabs = function (_layout,_outputId,_domId){
|
|
|
|
|
// Object.keys(_layout.menu).
|
|
|
|
|
_names.forEach(function(_text){
|
|
|
|
|
_item = _layout.menu[_text]
|
|
|
|
|
// console.log([_item])
|
|
|
|
|
_tabItem = this._build(_text,_item)
|
|
|
|
|
|
|
|
|
|
$(tabs).append(_tabItem)
|
|
|
|
|