From: Brian Tegtmeier Date: Sat, 24 Dec 2011 00:13:44 +0000 (-0500) Subject: Changed bind() and unbind() to on() and off(). Shortcut for (document).ready(). X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1eead0257751fedb25108b71ad778c2b94c560e7;p=quix0rs-gnu-social.git Changed bind() and unbind() to on() and off(). Shortcut for (document).ready(). --- diff --git a/js/userdesign.go.js b/js/userdesign.go.js index f6c696759d..5dd1401268 100644 --- a/js/userdesign.go.js +++ b/js/userdesign.go.js @@ -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); });