1
This commit is contained in:
@@ -216,7 +216,7 @@ export class KsDashboardNinja extends Component {
|
||||
grid_initiate(){
|
||||
var self=this;
|
||||
const ks_element = this.main_body.el;
|
||||
var $gridstackContainer = $(".grid-stack");
|
||||
var $gridstackContainer = $(`.grid-stack-${this.ks_dashboard_id}`);
|
||||
if($gridstackContainer.length){
|
||||
this.grid = GridStack.init(this.gridstack_options,$gridstackContainer[0]);
|
||||
var item = self.ksSortItems(self.ks_dashboard_data.ks_item_data)
|
||||
|
||||
@@ -398,7 +398,7 @@
|
||||
|
||||
<div class="ks_dashboard_main_content" t-ref="ks_main_body">
|
||||
<t t-if="state.ks_dashboard_item_length != 0">
|
||||
<div class="ks_dashboard_item_content grid-stack ks_dashboard_items_list m-3" gs-w="36"/>
|
||||
<div class="ks_dashboard_item_content grid-stack ks_dashboard_items_list m-3" t-attf-class="grid-stack-{{ks_dashboard_id}}" gs-w="36"/>
|
||||
<t t-call="ks_dashboard_item_template"/>
|
||||
</t>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user