]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Changed bind() and unbind() to on() and off(). Shortcut for (document).ready().
authorBrian Tegtmeier <btegtmeier@gmail.com>
Sat, 24 Dec 2011 00:13:44 +0000 (19:13 -0500)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 10 Sep 2013 11:28:49 +0000 (13:28 +0200)
js/userdesign.go.js

index f6c696759dc1080ced6b3a34b346376c4ea150d2..5dd1401268c91b5b6015f90716358dba5c25eca4 100644 (file)
@@ -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);
     });