/* This file is part of Tryton. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. */ (function() { 'use strict'; Sao.ScreenContainer = Sao.class_(Object, { init: function(tab_domain) { this.alternate_viewport = jQuery('
', { 'class': 'screen-container' }); this.alternate_view = false; this.search_modal = null; this.search_form = null; this.tab_domain = tab_domain || []; this.el = jQuery('
', { 'class': 'screen-container' }); this.filter_box = jQuery('
', { 'class': 'filter-box' }).submit(function(e) { this.do_search(); e.preventDefault(); }.bind(this)); var search_row = jQuery('
', { 'class': 'row' }).appendTo(this.filter_box); this.el.append(this.filter_box); this.filter_button = jQuery('