B2G/gecko/browser/components/preferences/selectBookmark.js
/** 
   * Update the disabled state of the OK button as the user changes the 
   * selection within the view. 
   */
Update the disabled state of the OK button as the user changes the
selection within the view.
Update the disabled state of the OK button as the user changes the selection within the view .
function SBD_selectionChanged() {
    var accept = document.documentElement.getButton("accept");
    var bookmarks = document.getElementById("bookmarks");
    var disableAcceptButton = true;
    if (bookmarks.hasSelection) {
      if (!PlacesUtils.nodeIsSeparator(bookmarks.selectedNode))
        disableAcceptButton = false;
    }
    accept.disabled = disableAcceptButton;
  }
function SBD_selectionChanged ( ) { var accept = document . documentElement . getButton ( "accept" ) ; var bookmarks = document . getElementById ( "bookmarks" ) ; var disableAcceptButton = true ; if ( bookmarks . hasSelection ) { if ( ! PlacesUtils . nodeIsSeparator ( bookmarks . selectedNode ) ) disableAcceptButton = false ; } accept . disabled = disableAcceptButton ; }
Update the disabled state of the OK button as the user changes the
 selection within the view.
Update the disabled state of the OK button as the user changes the selection within the view .