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 @@ ...@@ -6,7 +6,7 @@
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/ * @link http://status.net/
*/ */
$(document).ready(function() { $(function() {
function InitColors(i, E) { function InitColors(i, E) {
switch (parseInt(E.id.slice(-1))) { switch (parseInt(E.id.slice(-1))) {
case 1: default: case 1: default:
...@@ -107,11 +107,11 @@ $(document).ready(function() { ...@@ -107,11 +107,11 @@ $(document).ready(function() {
var f, swatches; var f, swatches;
InitFarbtastic(); InitFarbtastic();
$('#form_settings_design').bind('reset', function(){ $('#form_settings_design').on('reset', function(){
setTimeout(function(){ setTimeout(function(){
swatches.each(function(){UpdateColors(this);}); swatches.each(function(){UpdateColors(this);});
$('#color-picker').remove(); $('#color-picker').remove();
swatches.unbind(); swatches.off();
InitFarbtastic(); InitFarbtastic();
},10); },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