~cedric-lebrouster/openerp-web/6.1-bug-1163912-calendar-view

« back to all changes in this revision

Viewing changes to addons/web/static/src/js/view_page.js

  • Committer: Xavier ALT
  • Date: 2013-02-28 10:58:08 UTC
  • mfrom: (2501.1.1 client-web)
  • Revision ID: xal@openerp.com-20130228105808-h1q2ayhzd19007qi
[MERGE] OPW 586299: web: really hide readonly binary field when switching between differents records in page mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
263
263
        },
264
264
        set_value: function(value) {
265
265
            this._super.apply(this, arguments);
266
 
            this.$element.find('a').show(!!value);
 
266
            this.$element.find('a').toggle(!!value);
267
267
            if (value) {
268
268
                var show_value = _t("Download") + " " + (this.view.datarecord[this.node.attrs.filename] || '');
269
269
                this.$element.find('a').text(show_value);