mirror of https://github.com/OCA/web.git
[10.0-MIG] web_dialog_size for v10.0
parent
0a33b6b4e8
commit
c09bf98ebb
|
@ -0,0 +1,33 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Copyright 2015 ACSONE SA/NV
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
{
|
||||||
|
'name': "Web Dialog Size",
|
||||||
|
|
||||||
|
'summary': """
|
||||||
|
A module that lets the user expand a
|
||||||
|
dialog box to the full screen width.""",
|
||||||
|
|
||||||
|
'author': "ACSONE SA/NV, "
|
||||||
|
"Serv. Tecnol. Avanzados - Pedro M. Baeza, "
|
||||||
|
"Therp BV, "
|
||||||
|
"Odoo Community Association (OCA), "
|
||||||
|
"Siddharth Bhalgami",
|
||||||
|
|
||||||
|
'website': "http://acsone.eu",
|
||||||
|
'category': 'web',
|
||||||
|
'version': '10.0.1.0.0',
|
||||||
|
'license': 'AGPL-3',
|
||||||
|
|
||||||
|
'depends': [
|
||||||
|
'web',
|
||||||
|
],
|
||||||
|
'qweb': [
|
||||||
|
'static/src/xml/web_dialog_size.xml',
|
||||||
|
],
|
||||||
|
'data': [
|
||||||
|
'templates/assets.xml',
|
||||||
|
],
|
||||||
|
'installable': True,
|
||||||
|
}
|
|
@ -1,52 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
##############################################################################
|
|
||||||
#
|
|
||||||
# This file is part of web_dialog_sizes, an Odoo module.
|
|
||||||
#
|
|
||||||
# Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>)
|
|
||||||
#
|
|
||||||
# web_expand_dialog is free software: you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU Affero General Public License
|
|
||||||
# as published by the Free Software Foundation, either version 3 of
|
|
||||||
# the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# web_expand_dialog is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU Affero General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the
|
|
||||||
# GNU Affero General Public License
|
|
||||||
# along with web_expand_dialog.
|
|
||||||
# If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
#
|
|
||||||
##############################################################################
|
|
||||||
{
|
|
||||||
'name': "Web Dialog Size",
|
|
||||||
|
|
||||||
'summary': """
|
|
||||||
A module that lets the user expand a
|
|
||||||
dialog box to the full screen width.""",
|
|
||||||
|
|
||||||
'author': "ACSONE SA/NV, "
|
|
||||||
"Serv. Tecnol. Avanzados - Pedro M. Baeza, "
|
|
||||||
"Therp BV, "
|
|
||||||
"Odoo Community Association (OCA), "
|
|
||||||
"Siddharth Bhalgami",
|
|
||||||
|
|
||||||
'website': "http://acsone.eu",
|
|
||||||
'category': 'web',
|
|
||||||
'version': '9.0.1.0.0',
|
|
||||||
'license': 'AGPL-3',
|
|
||||||
|
|
||||||
'depends': [
|
|
||||||
'web',
|
|
||||||
],
|
|
||||||
'qweb': [
|
|
||||||
'static/src/xml/web_dialog_size.xml',
|
|
||||||
],
|
|
||||||
'data': [
|
|
||||||
'view/qweb.xml',
|
|
||||||
],
|
|
||||||
'installable': True,
|
|
||||||
}
|
|
|
@ -23,14 +23,14 @@ Dialog.include({
|
||||||
},
|
},
|
||||||
|
|
||||||
_extending: function() {
|
_extending: function() {
|
||||||
var dialog = this.$el.parents('.modal-dialog');
|
var dialog = this.$modal.find('.modal-dialog');
|
||||||
dialog.addClass('dialog_full_screen');
|
dialog.addClass('dialog_full_screen');
|
||||||
dialog.find('.dialog_button_extend').hide();
|
dialog.find('.dialog_button_extend').hide();
|
||||||
dialog.find('.dialog_button_restore').show();
|
dialog.find('.dialog_button_restore').show();
|
||||||
},
|
},
|
||||||
|
|
||||||
_restore: function() {
|
_restore: function() {
|
||||||
var dialog = this.$el.parents('.modal-dialog');
|
var dialog = this.$modal.find('.modal-dialog');
|
||||||
dialog.removeClass('dialog_full_screen');
|
dialog.removeClass('dialog_full_screen');
|
||||||
dialog.find('.dialog_button_restore').hide();
|
dialog.find('.dialog_button_restore').hide();
|
||||||
dialog.find('.dialog_button_extend').show();
|
dialog.find('.dialog_button_extend').show();
|
||||||
|
|
Loading…
Reference in New Issue