IE9 fixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
from couchpotato.core.helpers.encoding import toUnicode
|
from couchpotato.core.helpers.encoding import toUnicode
|
||||||
from couchpotato.core.helpers.variable import natcmp
|
from couchpotato.core.helpers.variable import natcmp
|
||||||
from flask.globals import current_app
|
from flask.globals import current_app
|
||||||
from flask.helpers import json
|
from flask.helpers import json, make_response
|
||||||
from libs.werkzeug.urls import url_decode
|
from libs.werkzeug.urls import url_decode
|
||||||
from urllib import unquote
|
from urllib import unquote
|
||||||
import flask
|
import flask
|
||||||
@@ -72,6 +72,11 @@ def jsonify(mimetype, *args, **kwargs):
|
|||||||
def jsonified(*args, **kwargs):
|
def jsonified(*args, **kwargs):
|
||||||
callback = getParam('callback_func', None)
|
callback = getParam('callback_func', None)
|
||||||
if callback:
|
if callback:
|
||||||
return padded_jsonify(callback, *args, **kwargs)
|
content = padded_jsonify(callback, *args, **kwargs)
|
||||||
else:
|
else:
|
||||||
return jsonify('application/json', *args, **kwargs)
|
content = jsonify('application/json', *args, **kwargs)
|
||||||
|
|
||||||
|
response = make_response(content)
|
||||||
|
response.cache_control.no_cache = True
|
||||||
|
|
||||||
|
return response
|
||||||
|
|||||||
@@ -221,7 +221,9 @@ Block.Search.Item = new Class({
|
|||||||
}
|
}
|
||||||
}).adopt(
|
}).adopt(
|
||||||
self.thumbnail = info.images && info.images.poster.length > 0 ? new Element('img.thumbnail', {
|
self.thumbnail = info.images && info.images.poster.length > 0 ? new Element('img.thumbnail', {
|
||||||
'src': info.images.poster[0]
|
'src': info.images.poster[0],
|
||||||
|
'height': null,
|
||||||
|
'width': null
|
||||||
}) : null,
|
}) : null,
|
||||||
new Element('div.info').adopt(
|
new Element('div.info').adopt(
|
||||||
self.title = new Element('h2', {
|
self.title = new Element('h2', {
|
||||||
@@ -332,8 +334,10 @@ Block.Search.Item = new Class({
|
|||||||
|
|
||||||
self.options.adopt(
|
self.options.adopt(
|
||||||
new Element('div').adopt(
|
new Element('div').adopt(
|
||||||
self.info.images && self.info.images.poster.length > 0 ? new Element('img.thumbnail', {
|
self.option_thumbnail = self.info.images && self.info.images.poster.length > 0 ? new Element('img.thumbnail', {
|
||||||
'src': self.info.images.poster[0]
|
'src': self.info.images.poster[0],
|
||||||
|
'height': null,
|
||||||
|
'width': null
|
||||||
}) : null,
|
}) : null,
|
||||||
self.info.in_wanted ? new Element('span.in_wanted', {
|
self.info.in_wanted ? new Element('span.in_wanted', {
|
||||||
'text': 'Already in wanted list: ' + self.info.in_wanted.profile.label
|
'text': 'Already in wanted list: ' + self.info.in_wanted.profile.label
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ var CouchPotato = new Class({
|
|||||||
|
|
||||||
if(window.location.hash)
|
if(window.location.hash)
|
||||||
History.handleInitialState();
|
History.handleInitialState();
|
||||||
else
|
|
||||||
self.openPage(window.location.pathname);
|
self.openPage(window.location.pathname);
|
||||||
|
|
||||||
History.addEvent('change', self.openPage.bind(self));
|
History.addEvent('change', self.openPage.bind(self));
|
||||||
self.c.addEvent('click:relay(a[href^=/]:not([target]))', self.pushState.bind(self));
|
self.c.addEvent('click:relay(a[href^=/]:not([target]))', self.pushState.bind(self));
|
||||||
|
|||||||
@@ -437,6 +437,7 @@ body > .spinner, .mask{
|
|||||||
border-radius:3px;
|
border-radius:3px;
|
||||||
border: 1px solid #252930;
|
border: 1px solid #252930;
|
||||||
box-shadow: inset 0 1px 0px rgba(255,255,255,0.20), 0 0 3px rgba(0,0,0, 0.2);
|
box-shadow: inset 0 1px 0px rgba(255,255,255,0.20), 0 0 3px rgba(0,0,0, 0.2);
|
||||||
|
background: rgb(55,62,74);
|
||||||
background-image: -webkit-gradient(
|
background-image: -webkit-gradient(
|
||||||
linear,
|
linear,
|
||||||
left bottom,
|
left bottom,
|
||||||
|
|||||||
Reference in New Issue
Block a user