mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
wip: component reorg, gathering js, css, images, ...
This commit is contained in:
24
resources/www/prod/js/jquery.Results.js
Normal file
24
resources/www/prod/js/jquery.Results.js
Normal file
@@ -0,0 +1,24 @@
|
||||
var p4 = p4 || {};
|
||||
|
||||
(function (p4, window) {
|
||||
|
||||
p4.Results = {
|
||||
'Selection': new Selectable($('#answers'), {
|
||||
selector: '.IMGT',
|
||||
limit: 800,
|
||||
selectStart: function (event, selection) {
|
||||
$('#answercontextwrap table:visible').hide();
|
||||
},
|
||||
selectStop: function (event, selection) {
|
||||
viewNbSelect();
|
||||
},
|
||||
callbackSelection: function (element) {
|
||||
var elements = $(element).attr('id').split('_');
|
||||
|
||||
return elements.slice(elements.length - 2, elements.length).join('_');
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
return;
|
||||
}(p4, window));
|
Reference in New Issue
Block a user