Browse Source

Remove RPC::commit() declarations

pull/277/head
Timothée Jaussoin 9 years ago
parent
commit
e55cef3144
  1. 1
      app/widgets/Api/Api.php
  2. 1
      app/widgets/Roster/Roster.php
  3. 3
      app/widgets/Vcard4/Vcard4.php

1
app/widgets/Api/Api.php

@ -64,6 +64,5 @@ class Api extends \Movim\Widget\Base {
$cd->set($config);
RPC::call('MovimUtils.reloadThis');
RPC::commit();
}
}

1
app/widgets/Roster/Roster.php

@ -177,7 +177,6 @@ class Roster extends \Movim\Widget\Base
{
if(filter_var($jid, FILTER_VALIDATE_EMAIL)) {
RPC::call('MovimUtils.redirect', Route::urlize('contact', $jid));
RPC::commit();
} else
Notification::append(null, $this->__('roster.jid_error'));
}

3
app/widgets/Vcard4/Vcard4.php

@ -85,18 +85,15 @@ class Vcard4 extends \Movim\Widget\Base
Notification::append(null, $this->__('vcard.updated'));
RPC::call('MovimTpl.fill', '#vcard_form', $html);
RPC::commit();
}
function onMyVcard4Received() {
RPC::call('MovimUtils.buttonReset', '#vcard4validate');
Notification::append(null, $this->__('vcard.updated'));
RPC::commit();
}
function onMyVcard4NotReceived() {
Notification::append(null, $this->__('vcard.not_updated'));
RPC::commit();
}
function ajaxGetVcard() {

Loading…
Cancel
Save