move js files from js/pandora to js, fixes #1366
This commit is contained in:
parent
b5eda32bbd
commit
a9b7738aa8
104 changed files with 7 additions and 2 deletions
34
static/js/makeListPrivateDialog.js
Normal file
34
static/js/makeListPrivateDialog.js
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
'use strict';
|
||||
|
||||
pandora.ui.makeListPrivateDialog = function(name, subscribers, callback) {
|
||||
|
||||
var that = pandora.ui.iconDialog({
|
||||
buttons: [
|
||||
Ox.Button({
|
||||
id: 'keep',
|
||||
title: Ox._('Keep List Public')
|
||||
}).bindEvent({
|
||||
click: function() {
|
||||
that.close();
|
||||
callback(false);
|
||||
}
|
||||
}),
|
||||
Ox.Button({
|
||||
id: 'make',
|
||||
title: Ox._('Make List Private')
|
||||
}).bindEvent({
|
||||
click: function() {
|
||||
that.close();
|
||||
callback(true);
|
||||
}
|
||||
})
|
||||
],
|
||||
keys: {enter: 'make', escape: 'keep'},
|
||||
text: Ox._('Are you sure you want to make the list "{0}" private and loose its {1}?',
|
||||
[name, subscribers == 1 ? Ox._('subscriber') : Ox._('{0} subscribers', [subscribers])]),
|
||||
title: Ox._('Make List Private')
|
||||
});
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue