Favor/Disfavor form @class
Created icon, and add style JS selector change Fixed return actions
This commit is contained in:
parent
c1a247358d
commit
4b1cc73a58
@ -69,7 +69,7 @@ class DisfavorAction extends Action
|
||||
$user->blowFavesCache();
|
||||
|
||||
if ($this->boolean('ajax')) {
|
||||
common_start_html('text/xml;charset=utf-8', true);
|
||||
$this->startHTML('text/xml;charset=utf-8', true);
|
||||
$this->elementStart('head');
|
||||
$this->element('title', null, _('Add to favorites'));
|
||||
$this->elementEnd('head');
|
||||
|
@ -68,7 +68,7 @@ class FavorAction extends Action
|
||||
$user->blowFavesCache();
|
||||
|
||||
if ($this->boolean('ajax')) {
|
||||
common_start_html('text/xml;charset=utf-8', true);
|
||||
$this->startHTML('text/xml;charset=utf-8', true);
|
||||
$this->elementStart('head');
|
||||
$this->element('title', null, _('Disfavor favorite'));
|
||||
$this->elementEnd('head');
|
||||
|
@ -107,13 +107,13 @@ class LoginAction extends Action
|
||||
|
||||
function showForm($error=null)
|
||||
{
|
||||
$this->error = $error;
|
||||
$this->showPage();
|
||||
$this->error = $error;
|
||||
$this->showPage();
|
||||
}
|
||||
|
||||
function title()
|
||||
{
|
||||
return _('Login');
|
||||
return _('Login');
|
||||
}
|
||||
|
||||
function showPageNotice()
|
||||
|
@ -81,10 +81,10 @@ $(document).ready(function(){
|
||||
this.appendChild(ajax);
|
||||
}
|
||||
|
||||
$("form.favor").ajaxForm(favoptions);
|
||||
$("form.disfavor").ajaxForm(disoptions);
|
||||
$("form.favor").each(addAjaxHidden);
|
||||
$("form.disfavor").each(addAjaxHidden);
|
||||
$("form.form_favor").ajaxForm(favoptions);
|
||||
$("form.form_disfavor").ajaxForm(disoptions);
|
||||
$("form.form_favor").each(addAjaxHidden);
|
||||
$("form.form_disfavor").each(addAjaxHidden);
|
||||
|
||||
$("#nudge").ajaxForm ({ dataType: 'xml',
|
||||
beforeSubmit: function(xml) { $("form#nudge input[type=submit]").attr("disabled", "disabled");
|
||||
|
@ -88,7 +88,7 @@ class DisfavorForm extends Form
|
||||
|
||||
function action()
|
||||
{
|
||||
common_local_url('disfavor');
|
||||
return common_local_url('disfavor');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -136,7 +136,7 @@ class DisfavorForm extends Form
|
||||
|
||||
function formClass()
|
||||
{
|
||||
return 'disfavor';
|
||||
return 'form_disfavor';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ class FavorForm extends Form
|
||||
|
||||
function action()
|
||||
{
|
||||
common_local_url('favor');
|
||||
return common_local_url('favor');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -148,6 +148,6 @@ class FavorForm extends Form
|
||||
|
||||
function formClass()
|
||||
{
|
||||
return 'notice_favorite';
|
||||
return 'form_favor';
|
||||
}
|
||||
}
|
||||
|
@ -817,11 +817,13 @@ float:left;
|
||||
}
|
||||
.notice-options .notice_delete,
|
||||
.notice-options .notice_reply,
|
||||
.notice-options .notice_favorite {
|
||||
.notice-options .form_favor,
|
||||
.notice-options .form_disfavor {
|
||||
position:absolute;
|
||||
top:0;
|
||||
}
|
||||
.notice-options .notice_favorite {
|
||||
.notice-options .form_favor,
|
||||
.notice-options .form_disfavor {
|
||||
left:0;
|
||||
}
|
||||
.notice-options .notice_reply {
|
||||
@ -861,11 +863,11 @@ padding:2px 0 2px 10px;
|
||||
}
|
||||
|
||||
.notice-options .notice_delete dt,
|
||||
.notice-options .notice_favorite legend {
|
||||
.notice-options .form_favor legend {
|
||||
display:none;
|
||||
}
|
||||
.notice-options .notice_delete fieldset,
|
||||
.notice-options .notice_favorite fieldset {
|
||||
.notice-options .form_favor fieldset {
|
||||
border:0;
|
||||
padding:0;
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ border-color:#fff;
|
||||
background-color:rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
#site_nav_local_views a:hover {
|
||||
background-color:rgba(255, 255, 255, 0.7);:
|
||||
background-color:rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
|
||||
|
||||
@ -87,7 +87,7 @@ background-image:url(../../base/images/icons/icon_atom.jpg);
|
||||
}
|
||||
#export_data li a.foaf {
|
||||
background-image:url(../../base/images/icons/icon_foaf.gif);
|
||||
=}
|
||||
}
|
||||
#export_data li a.export_vcard {
|
||||
background-image:url(../../base/images/icons/icon_vcard.gif);
|
||||
}
|
||||
@ -173,9 +173,12 @@ background-color:transparent;
|
||||
.notice-options .notice_reply a {
|
||||
background:transparent url(../images/icons/twotone/green/reply.gif) no-repeat 0 45%;
|
||||
}
|
||||
.notice-options form.notice_favorite input.submit {
|
||||
.notice-options form.form_favor input.submit {
|
||||
background:transparent url(../images/icons/twotone/green/favourite.gif) no-repeat 0 45%;
|
||||
}
|
||||
.notice-options form.form_disfavor input.submit {
|
||||
background:transparent url(../images/icons/twotone/green/disfavourite.gif) no-repeat 0 45%;
|
||||
}
|
||||
.notice-options .notice_delete a {
|
||||
background:transparent url(../images/icons/twotone/green/trash.gif) no-repeat 0 45%;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user