This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
Bug 964653 - (system-dialog) [Window Management] Implement System Dialog Window #16282
Merged
ian-liu
merged 1 commit into
mozilla-b2g:master
from
ian-liu:system/bug964653_system_dialog_refactor
Mar 28, 2014
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* -*- Mode: js; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- / | ||
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ | ||
'use strict'; | ||
|
||
(function(exports) { | ||
|
||
/** | ||
* @class FxAccountsDialog | ||
* @param {options} object for attributes `onShow`, `onHide` callback. | ||
* @extends SystemDialog | ||
*/ | ||
var FxAccountsDialog = function FxAccountsDialog(options) { | ||
if (options) { | ||
this.options = options; | ||
} | ||
/** | ||
* render the dialog | ||
*/ | ||
this.render(); | ||
this.publish('created'); | ||
}; | ||
|
||
FxAccountsDialog.prototype.__proto__ = window.SystemDialog.prototype; | ||
|
||
FxAccountsDialog.prototype.customID = 'fxa-dialog'; | ||
|
||
FxAccountsDialog.prototype.DEBUG = false; | ||
|
||
FxAccountsDialog.prototype.view = function fxad_view() { | ||
return '<div id="' + this.instanceID + '"></div>'; | ||
}; | ||
|
||
FxAccountsDialog.prototype.getView = function fxad_view() { | ||
return document.getElementById(this.instanceID); | ||
}; | ||
|
||
// Get all elements when inited. | ||
FxAccountsDialog.prototype._fetchElements = | ||
function fxad__fetchElements() { | ||
|
||
}; | ||
|
||
// Register events when all elements are got. | ||
FxAccountsDialog.prototype._registerEvents = | ||
function fxad__registerEvents() { | ||
|
||
}; | ||
|
||
exports.FxAccountsDialog = FxAccountsDialog; | ||
|
||
}(window)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to move this into SimPinSystemDialog and let simcard_dialog.js to be manager of that but this could be another bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with your suggestion. That would be a follow up work.:)