diff --git a/admin/code/LeftAndMain.php b/admin/code/LeftAndMain.php index c9587d055..eab1f2951 100644 --- a/admin/code/LeftAndMain.php +++ b/admin/code/LeftAndMain.php @@ -239,7 +239,6 @@ class LeftAndMain extends Controller { THIRDPARTY_DIR . '/jquery-cookie/jquery.cookie.js', THIRDPARTY_DIR . '/jquery-query/jquery.query.js', SAPPHIRE_ADMIN_DIR . '/thirdparty/jquery-notice/jquery.notice.js', - THIRDPARTY_DIR . '/jquery-metadata/jquery.metadata.js', SAPPHIRE_ADMIN_DIR . '/thirdparty/jsizes/lib/jquery.sizes.js', SAPPHIRE_ADMIN_DIR . '/thirdparty/jlayout/lib/jlayout.border.js', SAPPHIRE_ADMIN_DIR . '/thirdparty/jlayout/lib/jquery.jlayout.js', diff --git a/admin/javascript/LeftAndMain.js b/admin/javascript/LeftAndMain.js index db4f6b750..d9893c4c4 100644 --- a/admin/javascript/LeftAndMain.js +++ b/admin/javascript/LeftAndMain.js @@ -4,8 +4,6 @@ jQuery.noConflict(); * File: LeftAndMain.js */ (function($) { - $.metadata.setType('html5'); - // setup jquery.entwine $.entwine.warningLevel = $.entwine.WARN_LEVEL_BESTPRACTISE; $.entwine('ss', function($) { @@ -347,7 +345,7 @@ jQuery.noConflict(); */ $('.cms-container .field.date input.text').entwine({ onmatch: function() { - var holder = $(this).parents('.field.date:first'), config = holder.metadata({type: 'class'}); + var holder = $(this).parents('.field.date:first'), config = holder.data(); if(!config.showcalendar) return; config.showOn = 'button';