-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkp/pkp-lib#2163 Keep future and back issue grids in sync when issues…
… are published or unpublished
- Loading branch information
Showing
6 changed files
with
123 additions
and
4 deletions.
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
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,49 @@ | ||
/** | ||
* @defgroup js_controllers_grid | ||
*/ | ||
/** | ||
* @file js/controllers/grid/issues/BackIssueGridHandler.js | ||
* | ||
* Copyright (c) 2014-2016 Simon Fraser University Library | ||
* Copyright (c) 2000-2016 John Willinsky | ||
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. | ||
* | ||
* @class BackIssueGridHandler | ||
* @ingroup js_controllers_grid | ||
* | ||
* @brief A subclass of the GridHandler for the grid displaying back issues. | ||
* It handles communication between the future and back issue grids, so that | ||
* updates to published issues are synchronized. | ||
*/ | ||
(function($) { | ||
|
||
/** @type {Object} */ | ||
$.pkp.controllers.grid.issues = $.pkp.controllers.grid.issues || {}; | ||
|
||
/** @type {Object} */ | ||
$.pkp.controllers.grid.issues.BackIssueGridHandler = | ||
$.pkp.controllers.grid.issues.BackIssueGridHandler || {}; | ||
|
||
|
||
/** | ||
* @constructor | ||
* | ||
* @extends $.pkp.controllers.grid.GridHandler | ||
* | ||
* @param {jQueryObject} $grid The grid this handler is | ||
* attached to. | ||
* @param {{features}} options Grid handler configuration. | ||
*/ | ||
$.pkp.controllers.grid.issues.BackIssueGridHandler = | ||
function($grid, options) { | ||
this.parent($grid, options); | ||
|
||
this.bind('issuePublished', function() { this.refreshGridHandler(); }); | ||
}; | ||
$.pkp.classes.Helper.inherits( | ||
$.pkp.controllers.grid.issues.BackIssueGridHandler, | ||
$.pkp.controllers.grid.GridHandler); | ||
|
||
|
||
/** @param {jQuery} $ jQuery closure. */ | ||
}(jQuery)); |
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 @@ | ||
/** | ||
* @defgroup js_controllers_grid | ||
*/ | ||
/** | ||
* @file js/controllers/grid/issues/FutureIssueGridHandler.js | ||
* | ||
* Copyright (c) 2014-2016 Simon Fraser University Library | ||
* Copyright (c) 2000-2016 John Willinsky | ||
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. | ||
* | ||
* @class FutureIssueGridHandler | ||
* @ingroup js_controllers_grid | ||
* | ||
* @brief A subclass of the GridHandler for the grid displaying future issues. | ||
* It handles communication between the future and back issue grids, so that | ||
* updates to published issues are synchronized. | ||
*/ | ||
(function($) { | ||
|
||
/** @type {Object} */ | ||
$.pkp.controllers.grid.issues = $.pkp.controllers.grid.issues || {}; | ||
|
||
/** @type {Object} */ | ||
$.pkp.controllers.grid.issues.FutureIssueGridHandler = | ||
$.pkp.controllers.grid.issues.FutureIssueGridHandler || {}; | ||
|
||
|
||
/** | ||
* @constructor | ||
* | ||
* @extends $.pkp.controllers.grid.GridHandler | ||
* | ||
* @param {jQueryObject} $grid The grid this handler is | ||
* attached to. | ||
* @param {{features}} options Grid handler configuration. | ||
*/ | ||
$.pkp.controllers.grid.issues.FutureIssueGridHandler = | ||
function($grid, options) { | ||
this.parent($grid, options); | ||
|
||
this.bind('issueUnpublished', function() { this.refreshGridHandler(); }); | ||
}; | ||
$.pkp.classes.Helper.inherits( | ||
$.pkp.controllers.grid.issues.FutureIssueGridHandler, | ||
$.pkp.controllers.grid.GridHandler); | ||
|
||
|
||
|
||
|
||
/** @param {jQuery} $ jQuery closure. */ | ||
}(jQuery)); |
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