Browse Source

[REM] web_popup_large: Not needed anymore due to web_popup_large

pull/341/head
Pedro M. Baeza 9 years ago
parent
commit
bc14918b45
  1. 0
      web_popup_large/__init__.py
  2. 35
      web_popup_large/__openerp__.py
  3. 25
      web_popup_large/static/src/js/web_popup_large.js

0
web_popup_large/__init__.py

35
web_popup_large/__openerp__.py

@ -1,35 +0,0 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright (C) 2013 Therp BV (<http://therp.nl>).
#
# This program 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.
#
# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
"name": "Large pop-ups in web client",
"version": "7.0.1.0",
"author": "Therp BV,Odoo Community Association (OCA)",
"category": 'Usability',
"description": """
Pop-ups in the web client have a width of 900 pixels by default.
This module changes this default width to 95% of the parent window.
""",
'website': 'https://launchpad.net/web-addons',
'depends': ['web'],
"license": 'AGPL-3',
"js": ['static/src/js/web_popup_large.js'],
'installable': False,
}

25
web_popup_large/static/src/js/web_popup_large.js

@ -1,25 +0,0 @@
/*
Copyright (C) 2013 Therp BV
License: GNU AFFERO GENERAL PUBLIC LICENSE
Version 3 or any later version
@authors: Holger Brunn (hbrunn@therp.nl)
Stefan Rijnhart (stefan@therp.nl)
*/
openerp.web_popup_large = function(instance) {
instance.web.Dialog.include({
init: function(parent, options, content)
{
if(!options) {
options = {}
}
if (!options.width) {
options.width = '95%';
}
return this._super(parent, options, content);
},
});
}
Loading…
Cancel
Save