mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
some cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e8c2aebf56
commit
5e4498ca79
10
ui/marks.js
10
ui/marks.js
@ -68,15 +68,15 @@ var getMarkedGIDBefore = makeGIDBeforeGetterFromList(
|
||||
// - toggle mark_class on the mark element
|
||||
// - call the callback, if defined, passing it:
|
||||
// - gid
|
||||
// - action ('on' on 'off')
|
||||
// - action ('on' or 'off')
|
||||
// - trigger the evt_name on the viewer passing it:
|
||||
// - gid
|
||||
// - action ('on' on 'off')
|
||||
// - action ('on' or 'off')
|
||||
//
|
||||
// The actual toggler is built with createCSSClassToggler(..), see its
|
||||
// docs for protocol descrittion.
|
||||
//
|
||||
// The resulting toggled, by default, marks the current image
|
||||
// The resulting toggler, by default, marks the current image
|
||||
// (.current.image), but can be passed a different image as first
|
||||
// argument.
|
||||
//
|
||||
@ -147,7 +147,7 @@ function makeMarkUpdater(img_class, mark_class, test){
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
* Basic marks...
|
||||
*
|
||||
*/
|
||||
|
||||
var updateSelectedImageMark = makeMarkUpdater(
|
||||
@ -336,8 +336,6 @@ function invertImageMarks(){
|
||||
|
||||
// Toggle marks in the current continuous section of marked or unmarked
|
||||
// images...
|
||||
// XXX need to make this dynamic data compatible...
|
||||
// XXX this will mark the block ONLY IF it is loaded!!!
|
||||
function toggleMarkBlock(image){
|
||||
image = image == null ? getImage() : image
|
||||
var gid = typeof(image) == typeof('str') ? image : getImageGID(image)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user