We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 1eead025 authored by Brian Tegtmeier's avatar Brian Tegtmeier Committed by mattl

Changed bind() and unbind() to on() and off(). Shortcut for (document).ready().

parent f0d86cdb
......@@ -6,7 +6,7 @@
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
$(document).ready(function() {
$(function() {
function InitColors(i, E) {
switch (parseInt(E.id.slice(-1))) {
case 1: default:
......@@ -107,11 +107,11 @@ $(document).ready(function() {
var f, swatches;
InitFarbtastic();
$('#form_settings_design').bind('reset', function(){
$('#form_settings_design').on('reset', function(){
setTimeout(function(){
swatches.each(function(){UpdateColors(this);});
$('#color-picker').remove();
swatches.unbind();
swatches.off();
InitFarbtastic();
},10);
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment