added wesite slideshow and attributions on website

This commit is contained in:
Rushabh Mehta 2012-12-25 18:18:16 +05:30
parent 184ceffdbc
commit 651baae993
3 changed files with 9 additions and 12 deletions

View file

@ -15,15 +15,6 @@ body {
}
footer {
background: #b7b7b7; /* Old browsers */
background: -moz-linear-gradient(top, #b7b7b7 0%, #eeeeee 36%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b7b7b7), color-stop(36%,#eeeeee)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #b7b7b7 0%,#eeeeee 36%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #b7b7b7 0%,#eeeeee 36%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #b7b7b7 0%,#eeeeee 36%); /* IE10+ */
background: linear-gradient(top, #b7b7b7 0%,#eeeeee 36%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b7b7b7', endColorstr='#eeeeee',GradientType=0 ); /* IE6-9 */
border-top: 1px solid #999;
text-align: center;
color: inherit;
padding: 10px;
@ -31,6 +22,10 @@ footer {
line-height: 1.7;
}
footer, footer a {
color: #999;
}
label {
padding-top: 15px;
color: #404040;

View file

@ -288,7 +288,7 @@ _f.CodeField.prototype.make_input = function() {
valid_elements : "@[id|class|style|title|dir<ltr?rtl|lang|xml::lang|onclick|ondblclick|"
+ "onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|"
+ "onkeydown|onkeyup],a[rel|rev|charset|hreflang|tabindex|accesskey|type|"
+ "name|href|target|title|class|onfocus|onblur],strong/b,em/i,strike,u,"
+ "name|href|target|title|class|onfocus|onblur|data-slide],strong/b,em/i,strike,u,"
+ "#p,-ol[type|compact],-ul[type|compact],-li,br,img[longdesc|usemap|"
+ "src|border|alt=|title|hspace|vspace|width|height|align],-sub,-sup,"
+ "-blockquote,-table[border=0|cellspacing|cellpadding|width|frame|rules|"

View file

@ -445,13 +445,15 @@ class Document:
# if required, make new
if new or (not new and self.fields.get('__islocal')) and (not res.get('issingle')):
# new
r = self.insert(res.get('autoname'), res.get('istable'), res.get('name_case'),
make_autoname, keep_timestamps = keep_timestamps)
if r:
return r
elif not webnotes.conn.exists(self.doctype, self.name):
webnotes.msgprint("""This document was updated before your change. Please refresh before saving.""", raise_exception=1)
else:
if not res.get('issingle') and not webnotes.conn.exists(self.doctype, self.name):
webnotes.msgprint("""This document was updated before your change. Please refresh before saving.""", raise_exception=1)
# save the values
self._update_values(res.get('issingle'),