~ubuntu-branches/ubuntu/gutsy/firefox/gutsy

« back to all changes in this revision

Viewing changes to xpfe/components/bookmarks/resources/bookmarksMenu.js

  • Committer: Bazaar Package Importer
  • Author(s): Ian Jackson
  • Date: 2006-10-10 18:49:32 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20061010184932-da75izt7y0e59afq
Tags: 1.99+2.0rc2+dfsg-0ubuntu1
* New upstream version 2.0rc2.
* Fix/workaround for epiphany GtkSocket lifetype crash:
  apply patch id=241087 from Mozilla Bugzilla #241535 to fix LP #63814.
* Change application name to `Firefox', as requested by mdz.
  Files changed:
    - browser/locales/en-US/chrome/branding/brand.dtd
    - browser/locales/en-US/chrome/branding/brand.properties;
  New values:
    - brandShortName and brandFullName: `Bon Echo' => `Firefox'
    - vendorShortName: `Mozilla' => `Ubuntu'
* Make preferences dialogue fit again (bah!).

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
  createContextMenu: function (aEvent)
47
47
  {
48
48
    var target = document.popupNode;
49
 
    if (!this.isBTBookmark(target.id))
 
49
    if (!this.isBTBookmark(target.id) && target.id != "bookmarks-ptf")
50
50
      return false;
51
51
    target.focus() // buttons in the pt have -moz-user-focus: ignore -->
52
52
    this._selection   = this.getBTSelection(target);
473
473
  canDrop: function (aEvent, aDragSession)
474
474
  {
475
475
    var target = aEvent.target;
 
476
 
 
477
    // onDragStart calls this without a drag session
 
478
    // There will be no sourceNode for drags from external apps
 
479
    if (aDragSession && aDragSession.sourceNode) {
 
480
      var orientation = BookmarksMenu.getBTOrientation(aEvent, target);
 
481
      if (target == aDragSession.sourceNode ||
 
482
          (target == aDragSession.sourceNode.previousSibling &&
 
483
           orientation == BookmarksUtils.DROP_AFTER) ||
 
484
          (target == aDragSession.sourceNode.nextSibling &&
 
485
           orientation == BookmarksUtils.DROP_BEFORE))
 
486
        return false;
 
487
    }
 
488
 
476
489
    return BookmarksMenu.isBTBookmark(target.id)       && 
477
490
           target.id != "NC:SystemBookmarksStaticRoot" &&
478
491
           target.id.substring(0,5) != "find:"         ||