← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9130: fix for new-message, $(el).data("events") is deprecated in jq 1.8. Uses new "private api" $._data...

 

------------------------------------------------------------
revno: 9130
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2012-11-26 19:11:17 +0100
message:
  fix for new-message, $(el).data("events") is deprecated in jq 1.8. Uses new "private api" $._data(el, "events")
modified:
  dhis-2/dhis-web/dhis-web-mobile/src/main/resources/dhis-mobile-manifest.appcache
  dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/new-message.vm


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-mobile/src/main/resources/dhis-mobile-manifest.appcache'
--- dhis-2/dhis-web/dhis-web-mobile/src/main/resources/dhis-mobile-manifest.appcache	2012-11-26 17:46:05 +0000
+++ dhis-2/dhis-web/dhis-web-mobile/src/main/resources/dhis-mobile-manifest.appcache	2012-11-26 18:11:17 +0000
@@ -1,5 +1,5 @@
 CACHE MANIFEST
-# Version: 2.11-SNAPSHOT V4
+# Version: 2.11-SNAPSHOT V5
 
 CACHE:
 ../mobile/index

=== modified file 'dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/new-message.vm'
--- dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/new-message.vm	2012-10-30 15:35:11 +0000
+++ dhis-2/dhis-web/dhis-web-mobile/src/main/webapp/WEB-INF/dhis-web-mobile-velocity/new-message.vm	2012-11-26 18:11:17 +0000
@@ -84,12 +84,12 @@
         var searchField = $('form[role="search"] input:text');
         var clearSearchButton = $('form[role="search"]').find('a[data-icon="delete"]');
 
-        var clearSearchFn = clearSearchButton.data('events')['click'][0];
+        var clearSearchFn = $._data(clearSearchButton[0], ('events'))['click'][0];
         clearSearchButton.unbind('click');
         clearSearchButton.bind('click', displaySelected );
         clearSearchButton.bind('click', clearSearchFn );
 
-        var fn1 = searchField.data('events')['keyup'][1];
+        var fn1 = $._data(searchField[0], ('events'))['keyup'][1];
         searchField.unbind('keyup');
 
         searchField.bind('keyup', function () {