Browse Source

- Add a "plain" color background

- CSS fix
- Clean strings from RPC
- Update to Alpha5
pull/16/head
Jaussoin Timothée 13 years ago
parent
commit
5143762348
  1. 2
      VERSION
  2. 1
      system/RPC.php
  3. 7
      system/Utils.php
  4. 10
      system/Widget/widgets/Config/Config.php
  5. 1
      system/Widget/widgets/Notifs/notifs.css

2
VERSION

@ -1 +1 @@
0.7alpha4
0.7alpha5

1
system/RPC.php

@ -31,6 +31,7 @@ class RPC
array_shift($args);
$args = array_map('trim', $args);
$args = array_map('cleanString', $args);
if(self::filter($funcname, $args)) {
$funcall = array(

7
system/Utils.php

@ -661,6 +661,13 @@ function checkJid($jid)
return filter_var($jid, FILTER_VALIDATE_EMAIL);
}
/**
* Remove the tabulations, carriage return and multiple whitespaces
*/
function cleanString($s) {
return preg_replace('/(\s\s+|\t|\n)/', ' ', $s);
}
/**
* Return a URIfied string
* @param string

10
system/Widget/widgets/Config/Config.php

@ -152,13 +152,13 @@ class Config extends WidgetBase
<input type="radio" name="pattern" id="stars" value="stars"/>
<label for="stars"><span></span>
<div class="preview stars"
style="background-color:black;"></div>
style="background-color:black; background-size: 100px 100px;"></div>
</label>
<input type="radio" name="pattern" id="paper" value="paper"/>
<label for="paper"><span></span>
<div class="preview paper"
style="background-color:gray;"></div>
style="background-color: #23343E;"></div>
</label>
<input type="radio" name="pattern" id="tartan" value="tartan"/>
@ -166,6 +166,12 @@ class Config extends WidgetBase
<div class="preview tartan"
style="background-color: hsl(2, 57%, 40%);"></div>
</label>
<input type="radio" name="pattern" id="empty" value=""/>
<label for="empty"><span></span>
<div class="preview empty"
style="background-color: white;"></div>
</label>
</div>
</fieldset>
<br />

1
system/Widget/widgets/Notifs/notifs.css

@ -26,7 +26,6 @@
#notifstab span.red {
background-color: #C5371E;
box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.3) inset, 0px 0px 2px rgba(0, 0, 0, 0.3);
}
#notifstab:hover {

Loading…
Cancel
Save