Notification system
This commit is contained in:
1 parent
2323136221
commit
15175a0330
25 files changed
+1313
-165
No files matched your search
@@ -116,25 +116,7 @@ var MovieList = new Class({
|
||||
'change': self.search.bind(self)
|
||||
}
|
||||
}),
|
||||
self.navigation_menu = new Element('div.more_menu').adopt(
|
||||
self.navigation_menu_ul = new Element('ul'),
|
||||
self.navigation_menu_toggle = new Element('a.button.onlay', {
|
||||
'events': {
|
||||
'click': function(){
|
||||
self.navigation_menu.toggleClass('show')
|
||||
|
||||
if(self.navigation_menu.hasClass('show'))
|
||||
this.addEvent('outerClick', function(){
|
||||
self.navigation_menu.removeClass('show')
|
||||
this.removeEvents('outerClick');
|
||||
})
|
||||
else
|
||||
this.removeEvents('outerClick');
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
),
|
||||
self.navigation_menu = new Block.Menu(self),
|
||||
self.mass_edit_form = new Element('div.mass_edit_form').adopt(
|
||||
new Element('span.select').adopt(
|
||||
self.mass_edit_select = new Element('input[type=checkbox].inlay', {
|
||||
@@ -222,7 +204,7 @@ var MovieList = new Class({
|
||||
// Add menu or hide
|
||||
if (self.options.menu.length > 0)
|
||||
self.options.menu.each(function(menu_item){
|
||||
self.navigation_menu_ul.adopt(new Element('li').adopt(menu_item));
|
||||
self.navigation_menu.addLink(menu_item);
|
||||
})
|
||||
else
|
||||
self.navigation_menu.hide()
|
||||
@@ -268,7 +250,7 @@ var MovieList = new Class({
|
||||
'class': 'delete',
|
||||
'events': {
|
||||
'click': function(e){
|
||||
(e).stop();
|
||||
(e).preventDefault();
|
||||
Api.request('movie.delete', {
|
||||
'data': {
|
||||
'id': ids.join(',')
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
/* @override
|
||||
http://localhost:5000/static/movie_plugin/movie.css
|
||||
http://192.168.1.20:5000/static/movie_plugin/movie.css
|
||||
http://127.0.0.1:5000/static/movie_plugin/movie.css
|
||||
*/
|
||||
|
||||
.movies {
|
||||
padding: 60px 0 20px;
|
||||
}
|
||||
@@ -454,7 +448,7 @@
|
||||
}
|
||||
|
||||
.movies .alph_nav .more_menu {
|
||||
float: right;
|
||||
margin-left: 48px;
|
||||
}
|
||||
|
||||
.movies .alph_nav .more_menu > a {
|
||||
|
||||
@@ -230,7 +230,7 @@ var IMDBAction = new Class({
|
||||
|
||||
gotoIMDB: function(e){
|
||||
var self = this;
|
||||
(e).stop();
|
||||
(e).preventDefault();
|
||||
|
||||
window.open('http://www.imdb.com/title/'+self.id+'/');
|
||||
}
|
||||
@@ -258,7 +258,7 @@ var ReleaseAction = new Class({
|
||||
|
||||
show: function(e){
|
||||
var self = this;
|
||||
(e).stop();
|
||||
(e).preventDefault();
|
||||
|
||||
if(!self.options_container){
|
||||
self.options_container = new Element('div.options').adopt(
|
||||
@@ -292,7 +292,7 @@ var ReleaseAction = new Class({
|
||||
new Element('a.download.icon', {
|
||||
'events': {
|
||||
'click': function(e){
|
||||
(e).stop();
|
||||
(e).preventDefault();
|
||||
self.download(release);
|
||||
}
|
||||
}
|
||||
@@ -300,7 +300,7 @@ var ReleaseAction = new Class({
|
||||
new Element('a.delete.icon', {
|
||||
'events': {
|
||||
'click': function(e){
|
||||
(e).stop();
|
||||
(e).preventDefault();
|
||||
self.ignore(release);
|
||||
this.getParent('.item').toggleClass('ignored')
|
||||
}
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
/* @override
|
||||
http://localhost:5000/static/movie_plugin/search.css
|
||||
http://192.168.1.20:5000/static/movie_plugin/search.css
|
||||
http://127.0.0.1:5000/static/movie_plugin/search.css
|
||||
*/
|
||||
|
||||
.search_form {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ Block.Search = new Class({
|
||||
|
||||
clear: function(e){
|
||||
var self = this;
|
||||
(e).stop();
|
||||
(e).preventDefault();
|
||||
|
||||
self.input.set('value', '');
|
||||
self.input.focus()
|
||||
@@ -283,7 +283,7 @@ Block.Search.Item = new Class({
|
||||
|
||||
add: function(e){
|
||||
var self = this;
|
||||
(e).stop();
|
||||
(e).preventDefault();
|
||||
|
||||
Api.request('movie.add', {
|
||||
'data': {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @override http://192.168.1.20:5000/static/profile_plugin/profile.css */
|
||||
|
||||
.add_new_profile {
|
||||
padding: 20px;
|
||||
display: block;
|
||||
|
||||
@@ -156,7 +156,7 @@ var Profile = new Class({
|
||||
'class': 'delete',
|
||||
'events': {
|
||||
'click': function(e){
|
||||
(e).stop();
|
||||
(e).preventDefault();
|
||||
Api.request('profile.delete', {
|
||||
'data': {
|
||||
'id': self.data.id
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @override http://127.0.0.1:5000/static/quality_plugin/quality.css */
|
||||
|
||||
.group_sizes {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @override http://127.0.0.1:5000/static/wizard/wizard.css */
|
||||
|
||||
.page.wizard h1 {
|
||||
padding: 10px 30px;
|
||||
margin: 0;
|
||||
|
||||
@@ -35,7 +35,7 @@ Page.Wizard = new Class({
|
||||
'text': 'I\'m ready to start the awesomeness, wow this button is big and green!',
|
||||
'events': {
|
||||
'click': function(e){
|
||||
(e).stop();
|
||||
(e).preventDefault();
|
||||
Api.request('settings.save', {
|
||||
'data': {
|
||||
'section': 'core',
|
||||
|
||||
Reference in new issue
Block a user